Sunday 15 July 2012

telnet - TCP, How to Simulate FIN from both server and Client? -


I have to check my application in 2 scenarios ................. ............. Send the initiator a FIN to the server

I have a www server as a server, window VM as a client. I did telnet on 80 to emulate Scenario 1. But I need to simulate scenario 2 ... please help me

Thank you in advance

Just close the sockets, or if you want, Turn off the socket for output at both ends, it sends a fin.

But I do not know why you are testing such a low level item. You should check that what happens when you or the peer socket closes or closes it for output: not operating the TCP stack.

No comments:

Post a Comment