.net - Sample TCP Client/Server Application -
I need a sample application in the following scenario
1) The IOCP TCP server is capable of accepting the request < 2) Client requests and sends received operation
3) Close server connection
4) Customers open another socket for connection and receive received actions
< / P>
With this example, I want to see how a customer can open a connection And after the connection of the server another successful connection can be done with the client and can get the operation again
In fact how the server can handle the rejected connection and socket is unwanted ?? / P>
Please kindly help me with that
It can blow a new soul into my body!
I wrote several articles on code projects many years ago, to create an IOCP based TCP server A set of code was presented. The code is in C ++ and your question has been tagged ".net" but it seems impossible that you want to develop the net server using IOCP, because you have to use different asynchronous socket methods Can work as well without any need.
Anyway ...
The first article is linked to here:
I have used code since then It is a bit updated and it can be found.
There is no client code, but you can connect to the server with Telnet and send and send data ...
Comments
Post a Comment