Quantcast
Viewing all articles
Browse latest Browse all 21

Tcp server-Client using Asynchronous Calls C#

When writing your applications, some times you need to access data from network or send data to network. This is accomplished in c# by using tcp sockets or socket programming. Socket is identified by ip adrress and port no.

Here is the app, which look like this:

Image may be NSFW.
Clik here to view.
Tcp Server Client

 

Note:* Please make sure to run first server than clent else you will get error.

Here are server and client interface.

Image may be NSFW.
Clik here to view.
server-client

Here is the code for initializing TCP server using async calls

 


In the given application you can also reply from server back to client using the same socket. As now sever is initialized it listen and handles the reception of data. here is the code for receving data.


Here is the full code of server…


For any queries don’t hesitate to comment or contact. Thanks

Download Source Code:


Viewing all articles
Browse latest Browse all 21

Trending Articles