[�client/server�|�finger�|�whois�|�smtp mailer�|�port blocker�]
[�commands�|�index�|�overview�]
IP Chat - Client
���There is two parts to this IP Chat; the client and server. The client side is the part of the program that connects to the server. The server will be explained in the server part of this tutorial.
���The client doesn't take much coding. A few lines and you're set. The client requires this:
1 dsSocket control (dsSocket1 is the name ill refer to)
4 textboxes (IP Address, Port, Chattext, and NickName)
The coding for the client looks basically like this:
Sub dsSocket1_Connect()
dsSocket1.RemotePort = Text3 'text3 is for the port
dsSocket1.RemoteDotAddr = Text1 'text1 is for the IP
dsSocket1.Connect
End Sub
Sub dsSocket1_Exception(ErrorCode As Integer, ErrorDesc As String)
Text1 = Text1 & vbCrlf & ErrorDesc
End Sub
Sub dsSocket1_Receive(ReceiveData As String)
Text1 = Text1 & vbCrlf & ReceiveData
End Sub
That is all the coding needed in the dsSocket control. Now all that is needed is the coding for connecting, disconnecting, and auto-scrolling the textbox (which is all very easy to do)
Index