VB.NET-INFORMATIONS.COM



VB.NET Communications Tutorial

VB.NET MultiThreaded Server Socket Programming

VB.NET MultiThreaded Server Socket Programming

MultiThreaded Server Socket Program here is a VB.NET Console based application , that can handle multiple clients at the same time. You can see the basics of Socket Programming in the previous section , take a look at Socket Programming before you start this section.

The Multithreaded Socket Programming has two sections.

1. Multithreaded Server Socket Program

2. Multithreaded Client Socket Program

Here we create a Server Socket from TcpListener class and listen to PORT 8888 . When the server gets a request from Client , the Server pass the instance of the client request to a separate class handleClient . In handleClient class there is a Thread , handling the communication between the instance of Server side client and Client from outside .

For each request , in Server there is a new thread instant is create for communication , so we can connect more than one client at the same time to Server and communicate independently .

Create a new VB.NET Console Application project and put the following source code in the project.

VB.NET SourceCode


The Multithreaded Socket Programming has two sections.

1. Multithreaded Server Socket Program
2. Multithreaded Client Socket Program

You have to run Server program first and then Client program , then only you can communicate with Server and Client each other .

VB.NET Communications Related Contents
How to send email from VB.NET
VB.NET Send email using CDOSYS
How to find IP Address of Host
How to read a URL Content
VB.NET Socket Programming
VB.NET Server Socket Program
VB.NET Client Socket Program
VB.NET MultiThreaded Socket Programming
VB.NET MultiThreaded Client Socket Programming
VB.NET Chat Server Program
VB.NET Chat Server
VB.NET Chat Client

VB.NET Related Tpoics
Microsoft .Net Framework Tutorials
VB.NET Language Basics Tutorials
VB.NET Program Flow Control Tutorials
VB.NET Collections Tutorials
VB.NET String Tutorials
VB.NET Files Tutorials
VB.NET Excel 2007 Tutorials
VB.NET Crystal Reports Tutorials
VB.NET Communications Tutorial
VB.NET ADO.NET Tutorial with source code
ADO.NET Data Providers help and Tutorial
VB.NET ADO.NET Dataset Tutorial
ADO.NET DataAdapter and Dataset
VB.NET ADO.NET DataView Tutorial

Search here for more Vb.Net Source Code :


   Categories

    HOME
    VB.NET

 
 
 
   













  |  Home   |  SiteMap   |  About   |
net-informations.com (C) 2008 All Rights Reserved