MENU

1994世界杯_1954年世界杯 - hengshuifu.com

udp 不需要 listen

accept()不是监听,accept()是接受新连接。listen()是进入监听状态,表示愿意接收连接请求。listen之后有连接请求就将其放到队列中,accept()时把新连接请求从队列中取出,建立新的socket。

转载于:https://www.cnblogs.com/lvdongjie/p/4502690.html

Copyright © 2022 1994世界杯_1954年世界杯 - hengshuifu.com All Rights Reserved.