【每日阅读】2020年12月07日-socket编程步骤小计

索引

TCP

服务端需要bind、listen、accept。因为要监听哪个网卡的数据包必须在bind时告诉操作系统内核。

UDP

客户端和服务端都是bind之后就可以开始发送和接收数据包了。

epoll

基于事件触发机制,socket上有数据包时调用处理方法。

原创文章,作者:geekgao,如若转载,请注明出处:https://www.geekgao.cn/archives/2734

(0)
geekgaogeekgao博主
上一篇 2020年12月3日 下午11:43
下一篇 2020年12月9日

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

GitHub
分享本页
返回顶部

Warning: error_log(/usr/local/lighthouse/softwares/wordpress/wp-content/plugins/spider-analyser/#log/log-2718.txt): failed to open stream: No such file or directory in /usr/local/lighthouse/softwares/wordpress/wp-content/plugins/spider-analyser/spider.class.php on line 2900