Saturday, August 17, 2013

TCP- Close wait simulation - Part 3

Lets try to do some dirty way of coding to produce close_wait!

Check out my server code! I am opening up new socket and waiting for request from client!
Once request is received, writing out a message to client and closing the connection then and there!
Server Code


In Client code I am creating new connection with Server and puting the clinet into sleep mode with out closing the connection.
Client Code


This will results as bellow!


No comments:

Post a Comment