特牛网址导航

Linux网络编程-CSDN博客

网友收藏
1、套接字套接字:端口号拼接到IP地址构成了套接字。套接字socket= {IP地址:端口号}每一条TCP连接唯一的被通信两端的两个端点(即两个套接字所确定)2、socket函数创建一个套接字,调用socket函数 #include <sys/types.h> #include <sys/socket.h> int socket(int domain, int type, int_linux网络编程