| 14 |
|
ScaleWidth = 5670 |
| 15 |
|
ShowInTaskbar = 0 'False |
| 16 |
|
StartUpPosition = 3 'Windows Default |
| 17 |
+ |
Begin VB.Timer TCPTimer |
| 18 |
+ |
Left = 3360 |
| 19 |
+ |
Top = 120 |
| 20 |
+ |
End |
| 21 |
+ |
Begin VB.Timer UDPTimer |
| 22 |
+ |
Left = 3840 |
| 23 |
+ |
Top = 120 |
| 24 |
+ |
End |
| 25 |
|
Begin VB.CommandButton Command3 |
| 26 |
|
Caption = "TCP to Filter" |
| 27 |
|
Height = 375 |
| 71 |
|
_Version = 393216 |
| 72 |
|
Protocol = 1 |
| 73 |
|
End |
| 74 |
+ |
Begin VB.Label Label2 |
| 75 |
+ |
Caption = "Label2" |
| 76 |
+ |
Height = 255 |
| 77 |
+ |
Left = 120 |
| 78 |
+ |
TabIndex = 6 |
| 79 |
+ |
Top = 600 |
| 80 |
+ |
Width = 3375 |
| 81 |
+ |
End |
| 82 |
+ |
Begin VB.Label Label1 |
| 83 |
+ |
Caption = "Label1" |
| 84 |
+ |
Height = 255 |
| 85 |
+ |
Left = 120 |
| 86 |
+ |
TabIndex = 5 |
| 87 |
+ |
Top = 240 |
| 88 |
+ |
Width = 3375 |
| 89 |
+ |
End |
| 90 |
|
Begin VB.Label Status |
| 91 |
|
Caption = "Status:" |
| 92 |
|
Height = 255 |
| 113 |
|
Dim fileList As String |
| 114 |
|
Dim lastModified As String |
| 115 |
|
|
| 116 |
+ |
Dim UDPUpdateTime As Integer |
| 117 |
+ |
Dim TCPUpdateTime As Integer |
| 118 |
+ |
|
| 119 |
|
Dim protocolVersion As String |
| 120 |
|
Dim connected As Boolean |
| 121 |
|
Dim responseNumber As Integer |
| 177 |
|
|
| 178 |
|
End Sub |
| 179 |
|
|
| 153 |
– |
Private Sub Label1_Click() |
| 154 |
– |
|
| 155 |
– |
End Sub |
| 156 |
– |
|
| 180 |
|
Private Sub TCPSock_Connect() |
| 181 |
|
|
| 182 |
|
responseNumber = 0 |
| 221 |
|
TCPSock.SendData "UDPUpdateTime" & vbCrLf |
| 222 |
|
Case 4: |
| 223 |
|
If response = "ERROR" Then GoTo configError |
| 224 |
+ |
UDPUpdateTime = response |
| 225 |
|
TCPSock.SendData "TCPUpdateTime" & vbCrLf |
| 226 |
|
Case 5: |
| 227 |
|
If response = "ERROR" Then GoTo configError |
| 228 |
+ |
TCPUpdateTime = response |
| 229 |
|
TCPSock.SendData "ENDCONFIG" & vbCrLf |
| 230 |
|
Case 6: |
| 231 |
|
If Not response = "OK" Then GoTo configError |
| 250 |
|
responseNumber = 0 |
| 251 |
|
TCPSock.Close |
| 252 |
|
Text4.Text = Text4.Text & vbCrLf & " <closed>" |
| 253 |
+ |
Label1.Caption = "TCP hearbeat interval: " & UDPUpdateTime |
| 254 |
+ |
Label2.Caption = "UDP packet interval: " & TCPUpdateTime |
| 255 |
|
Status.Caption = "i-scream Winhost " & protocolVersion & " - got config okay" |
| 256 |
|
End Select |
| 257 |
|
Else |