对UDP套接字使用shutdown()

问题描述 投票:1回答:1

“关闭”功能对udp套接字有什么影响?

int shutdown(int socket, int how);
c linux sockets
1个回答
2
投票

在UDP套接字上调用shutdown()在线路上没有任何作用,仅影响套接字对象的状态。

查看内核:

© www.soinside.com 2019 - 2024. All rights reserved.