开发者

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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜