1 Attribute VB_Name = "IPCSUPP"
3 Global count_serv_puts&
9 PhoneOrAddress As String * 50
13 Global CurrBBS As BBSdir
14 Global editedBBSnum As Integer
16 Declare Function GetPrivateProfileInt Lib "kernel32" Alias "GetPrivateProfileIntA" (ByVal lpApplicationName As String, ByVal lpKeyName As String, ByVal nDefault As Long, ByVal lpFileName As String) As Long
17 Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long
18 Declare Function WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpString As Any, ByVal lpFileName As String) As Long
22 Function begin_trans() As Integer
24 If InTrans = True Then
28 MainWin.MousePointer = 11
37 MainWin.MousePointer = 0
41 Function GetPrivateProfileVBString(lpApplicationName As String, lpKeyName As String, nDefault As String, ByVal lpFileName As String) As String
44 a% = GetPrivateProfileString(lpApplicationName, lpKeyName, nDefault, buf$, Len(buf$), lpFileName)
47 GetPrivateProfileVBString = StripTrailingWhiteSpace(buf$)
56 Loop While InStr(TCPinbuf$, Chr$(10)) = 0
57 b% = InStr(TCPinbuf$, Chr$(10))
58 serv_gets = Left$(TCPinbuf$, b% - 1)
59 TCPinbuf$ = Right$(TCPinbuf$, Len(TCPinbuf$) - b%)
64 IPC.TCP.Send (buf$ + Chr$(10))
67 Function serv_read(bytes As Integer)
72 Loop While Len(TCPinbuf$) < bytes
73 serv_read = Left$(TCPinbuf$, bytes)
74 TCPinbuf$ = Right$(TCPinbuf$, Len(TCPinbuf$) - bytes)
79 Sub Transmit_Buffer(SendBuf As String)
82 nl% = InStr(a$, Chr$(13) + Chr$(10))
83 If (nl% > 0) And (nl% < 200) Then
84 serv_puts (Left$(a$, nl% - 1))
85 a$ = " " + Right$(a$, Len(a$) - nl% - 1)
87 If (nl% = 0) And (Len(a$) < 200) Then
91 If ((nl% = 0) And (Len(a$) >= 200)) Or (nl% >= 200) Then
95 If (y > ns%) Then ns% = y
97 If (ns% = 0) Or (ns% >= 200) Then ns% = 200
98 serv_puts (Left$(a$, ns% - 1))
99 a$ = Right$(a$, Len(a$) - ns%)