Two Person Chat With The Winsock Control And Visual Basic (Page 1 of 7 )
The Microsoft WinSock library allows you to connect to a remote machine and exchange data using either the User Datagram Protocol (UDP) or the Transmission Control Protocol (TCP). Both protocols can be used to create client-server applications. In this tutorial Jason will be teaching you how to create a direct-connect chat program that uses TCP. The program itself will be designed in such a way that it can act as both the client and server.Some of the most popular applications are chat-based: ICQ, MSN Messenger and Yahoo Chat, for example. Most of these chat programs make use of the classic client/server architecture, meaning that messages are relayed from a client's computer to a server's computer and vice-versa.
The Microsoft WinSock library allows you to connect to a remote machine and exchange data using either the User Datagram Protocol (UDP) or the Transmission Control Protocol (TCP). Both protocols can be used to create client-server applications. In this tutorial I will be teaching you how to create a direct-connect chat program that uses TCP. The program itself will be designed in such a way that it can act as both the client and server.
To create the chat application I'm going to describe in this article, you should have Visual Basic 6 installed as well as the Microsoft Winsock Library version 1.0 or above. The Winsock library comes pre-installed with all versions of Windows, so there's no need to download it.
You should know how to use components and program with Visual Basic. You should also have some knowledge of TCP and Ports. You can get up to scratch quickly at
this site.
Next: Creating the chat form >>
More Visual Basic Articles
More By Jason Brimblecombe