Click here to Skip to main content
15,911,524 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear sir,
I have used this code and am getting some of the TCP sockets in CLOSE_WAIT state.Please sir,tell me the way to close that particular sockets which is in the state of CLOSE_WAIT .
Posted

1 solution

Hello Surenkra,

CLOSE_WAIT state indicates that the socket server has received the first FIN signal from the client and the connection is in the process of being closed. The client needs to call the close() to actually close it.

For more details please refer to this blog[^].

Regards
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900