[转载] how to unbind a socket?# Unix - 噫吁兮,危乎高哉
a*s
1 楼
【 以下文字转载自 Programming 讨论区 】
【 原文由 abatis 所发表 】
After I bind using
bind(sockfd, ( SA* )&servaddr, sizeof(servaddr));
and did some operations, I want to explicitly unbind,
how to do it?
thanks.
【 原文由 abatis 所发表 】
After I bind using
bind(sockfd, ( SA* )&servaddr, sizeof(servaddr));
and did some operations, I want to explicitly unbind,
how to do it?
thanks.