Private Sub cmdSend_Click()
sock.Protocol = sckTCPProtocol
sock.RemoteHost = "192.168.1.170"
sock.RemotePort = 11000
sock.Connect
End Sub
Private Sub sock_ConnectionRequest(ByVal requestID As Long)
Debug.Print "Sock Conn Request: " & CStr(requestID)
sock.Accept
End Sub
Private Sub sock_Connect()
Debug.Print "Sock Connect...Sending Command..."
sock.SendData ("sendir,1:3,1,38000,1,69,342,171,21,63,21,21,21,63,21,21,21,21,21,21,21,21,21,63,21,21,21,21,21,21,21,21,21,63,21,63,21,21,21,21,21,21,21,63,21,63,21,21,21,63,21,63,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,63,21,63,21,1753,342,85,21,3645" & Chr(13))
End Sub
Private Sub sock_SendComplete()
Debug.Print "Send Complete"
End Sub
Private Sub sock_DataArrival(ByVal bytesTotal As Long)
Dim T As String
Call sock.GetData(T, , bytesTotal)
Debug.Print "Sock_DataArrival: " & T
sock.Close
End Sub
Private Sub sock_Close()
Debug.Print "Sock_Close"
End Sub
Private Sub sock_Error(ByVal Number As Integer, Description As String, ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, CancelDisplay As Boolean)
Debug.Print "Sock_Error: " & Description
End Sub