Linux(十九)网络基础:编写简单的TCP服务器

首先咱们来讲用到的函数web socket #include <sys/types.h> #include <sys/socket.h> int socket(int domain,int type,int protocol); *socket()打开一个网络通信端口,若是成功的话,就像open()同样返回一个文件描述符; *应用程序能够像读写文件同样用read/write在网络上收发数据; *
相关文章
相关标签/搜索