开发者

C STREAM client socket reuse after disconnecting

开发者 https://www.devze.com 2023-03-24 14:44 出处:网络
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

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

精彩评论

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