By: Issac Emailed: 1786 times Printed: 2608 times
Multithreaded Socket Programming is the basic idea behind a TCP Chat Server communication. A Multithreaded Server Socket Program communicates with more than one Client at the same time. But there the communication is happening only between Server to Client or Client to Server, there is no communication between Client to Client. In a Multithreaded Chat Server, a Client can communicate with any number of Clients, currently connected on the Chat Server.
Each Client sends messages to the Server and the Server broadcasts the message to all Clients that are currently connected to the Chat Server. From the following figure you can see how a VB.NET TCP Chat Server is handling communication between Client to Client.
How to run Chat Server program?
After creating the Chat Server and Chat Client programs we have to run the Server program first and then run the Client program. In the Client program enter a Chat name and click the “Connect to Server “button. Then you can see the message in the Server program User Joined Chat Room. Similarly you can connect more than one Client at the same time and start chatting each other. It is better to Compile and Build the program and run from the .exe files.
View Tutorial By: mansi at 2009-12-23 00:35:43
View Tutorial By: Eko SW at 2011-06-22 23:38:22
View Tutorial By: Federico at 2012-06-01 13:55:13
Most Viewed Articles (in VB.net )
Most Emailed Articles (in VB.net)