文件名称:socket2
介绍说明--下载内容均来自于网络,请自行研究使用
基于linux操作系统下的socket编程,完成一个简单聊天工具。服务器端首先:向内核申请一个socket。第二绑定地址到socket上,地址包括主机、端口。第三在socket上,允许接入呼叫并设置队列长度为1.第四等待/接受呼叫。第五传输数据(及可以聊天)。
客户端:第一向内核请求建立socket 第二与服务器相连。第三传输数据
-Linux operating system based on the socket programming, to complete a simple chat tool. Server-side First of all: to the kernel for a socket. Bind address to socket on the second, address, including the host, port. Third in the socket, allowing access to the call and set the queue length is 1. 4th to wait for/receive calls. 5th transmit data (and you can chat). Client: first to the kernel requests the establishment of a second socket connected with the server. Third transmission of data
客户端:第一向内核请求建立socket 第二与服务器相连。第三传输数据
-Linux operating system based on the socket programming, to complete a simple chat tool. Server-side First of all: to the kernel for a socket. Bind address to socket on the second, address, including the host, port. Third in the socket, allowing access to the call and set the queue length is 1. 4th to wait for/receive calls. 5th transmit data (and you can chat). Client: first to the kernel requests the establishment of a second socket connected with the server. Third transmission of data
(系统自动生成,下载前可以参看下载内容)
下载文件列表
socket2
.......\timeclnt
.......\timeclnt.c
.......\timeserv
.......\timeserv.c
.......\timeclnt
.......\timeclnt.c
.......\timeserv
.......\timeserv.c