摘要:
学习笔记 socket()函数 int socket(int domain, int type, int protocol); // domain:采取的协议族,一般为 PF_INET; //type:数据传输方式,一般为 SOCK_STREAM; //protocol:使用的协议,一般设为 0 即 阅读全文
posted @ 2021-12-15 17:09
MyBluehat
阅读(68)
评论(0)
推荐(0)
摘要:
学习笔记 网络编程(套接字编程)就是编写程序使两台联网的计算机互相交换数据,而套接字就是用来连接网络的工具。 服务器端套接字 #include <sys/socket.h> int socket(int domain, int type, int protocol); // 功能:创建套接字。 // 阅读全文
posted @ 2021-12-15 12:52
MyBluehat
阅读(66)
评论(0)
推荐(0)

浙公网安备 33010602011771号