Private Sub SockClient_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)
'出错后关闭
SockClient.Close
End Sub
Private Sub SockServer_Close()
cmd_connect.Enabled = True
End Sub
Private Sub SockServer_ConnectionRequest(ByVal requestID As Long)
'判断服务器不关闭时接受连接请求
If SockServer.State <> sckClosed Then SockServer.Close
SockServer.Accept requestID
End Sub
Private Sub SockServer_DataArrival(ByVal bytesTotal As Long)