With sockP If .State <> sckClosed Then .Close End If .Protocol = sckTCPProtocol .Connect sIPAddress, sIPPort Do DoEvents Loop Until .State = sckConnected Or .State = sckClosed sockP.SendData sText Private Sub sockP_DataArrival(ByVal bytesTotal As Long) Dim rData As String rData = "" sockP.GetData rData, vbString txtReplies.text = rData DoEvents End Sub
sockP.SendData sText
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)