C STREAM client socket reuse after disconnecting
How should I disconnect a stream socket from ser开发者_开发技巧ver so that I will be able to use socket to connect it to different address again?
You should just close(2)
the socket and create it again using socket(2)
.
精彩评论