- e107 一个采用PHP+MySQL开发的内容管理系统
- USBAudio SourceCode USB audio mcb2140
- jano-linux-0.1.tar there are mmultiple new network facilities that needs applications to use it our approach is to enhance actual network API
- ch08 jdbc test systme simple and basic source
- FtpClient 该实例通过WinInet编程接口实现了完整的FTP客户程序
- 9995548 matlab时频分析配套源码第12章的程序
文件名称:chat
-
所属分类:
- 标签属性:
- 上传时间:2013-12-28
-
文件大小:3.19kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
模拟qq聊天室。
服务器端:使用TCP协议创建套接字拿到机器的IP地址,选择一个可用的端口号,绑定它们,然后侦听客户端等待套接字连接。在收到客户端的连接请求,创建一个线程来与客户端进行交互。
客户端:类似服务器端,创建一个socket,注意IP和端口号和服务器端的匹配。在发送连接请求,服务器端,输入您的用户名,然后连接服务器时,可以接收其他客户端发送的数据,但他们也可以将数据发送到服务器端,聊天室功能的实现。-Simulated qq chat rooms.
server side: using tcp protocol creates socket to get the IP address of the machine, select an available port number, bind them, and then listen for client-side waiting for the socket connection. Upon receipt of the client-side connection request, create a thread to interact with the client side.
client side: Similar to server-side, to create a socket, note the IP and port number and server-side match. Before sending a connection request on the server side, enter your user name, and then connect server, you can receive the data sent by other client-side, but they can also send data to the server side, the chat room feature is realized.
服务器端:使用TCP协议创建套接字拿到机器的IP地址,选择一个可用的端口号,绑定它们,然后侦听客户端等待套接字连接。在收到客户端的连接请求,创建一个线程来与客户端进行交互。
客户端:类似服务器端,创建一个socket,注意IP和端口号和服务器端的匹配。在发送连接请求,服务器端,输入您的用户名,然后连接服务器时,可以接收其他客户端发送的数据,但他们也可以将数据发送到服务器端,聊天室功能的实现。-Simulated qq chat rooms.
server side: using tcp protocol creates socket to get the IP address of the machine, select an available port number, bind them, and then listen for client-side waiting for the socket connection. Upon receipt of the client-side connection request, create a thread to interact with the client side.
client side: Similar to server-side, to create a socket, note the IP and port number and server-side match. Before sending a connection request on the server side, enter your user name, and then connect server, you can receive the data sent by other client-side, but they can also send data to the server side, the chat room feature is realized.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
chat/
chat/client.c
chat/server.c
chat/client.c
chat/server.c
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.