文件名称:tcpip3
-
所属分类:
- 标签属性:
- 上传时间:2016-11-24
-
文件大小:4.77mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
简单的客户/服务器,服务器实现并发同时响应客户的UDP通信要求,也能响应客户端发过来的TCP通信要求。
客户:(1)客户先创建流套接字,向服务器发起TCP连接。
(2)连接创建成功后,接收服务器返回UDP服务端口号,创建数据报套接字。
(3)分别通过流套接字和数据报套接字与服务器进行通信。
(4)断开与服务器的连接。
服务器:(1)服务器创建监听套接字,监听客户TCP连接请求。
(2)服务器创建数据报套接字,等待接收客户的数据。
(3)当收到一个客户TCP连接请求,创建连接套接字同意与其创建连接。
(4)通过连接套接字返回UDP服务端口号给客户端。
(5)分别使用连接套接字和数据报套接字与客户进行通信。-Simple client/server, server to achieve concurrent response to the customer s UDP communication requirements, but also to respond to the client s TCP communication requirements.
Customer: (1) the customer first creates the stream socket, initiates the TCP connection to the server.
(2) after the connection is created, the server returns the UDP service port number, and the data is created.
(3) to communicate with the server via a stream socket and a data socket.
(4) disconnect the server.
Server: (1) server to create a listening socket, monitor client TCP connection request.
(2) the server to create a data reported socket, waiting to receive the customer s data.
(3) when a client TCP connection request is received, the connection socket is created to agree to the creation of the connection.
(4) to return the UDP service port number to the client via the connection socket.
(5) using the connection socket and the data socket to communicate with the customer.
客户:(1)客户先创建流套接字,向服务器发起TCP连接。
(2)连接创建成功后,接收服务器返回UDP服务端口号,创建数据报套接字。
(3)分别通过流套接字和数据报套接字与服务器进行通信。
(4)断开与服务器的连接。
服务器:(1)服务器创建监听套接字,监听客户TCP连接请求。
(2)服务器创建数据报套接字,等待接收客户的数据。
(3)当收到一个客户TCP连接请求,创建连接套接字同意与其创建连接。
(4)通过连接套接字返回UDP服务端口号给客户端。
(5)分别使用连接套接字和数据报套接字与客户进行通信。-Simple client/server, server to achieve concurrent response to the customer s UDP communication requirements, but also to respond to the client s TCP communication requirements.
Customer: (1) the customer first creates the stream socket, initiates the TCP connection to the server.
(2) after the connection is created, the server returns the UDP service port number, and the data is created.
(3) to communicate with the server via a stream socket and a data socket.
(4) disconnect the server.
Server: (1) server to create a listening socket, monitor client TCP connection request.
(2) the server to create a data reported socket, waiting to receive the customer s data.
(3) when a client TCP connection request is received, the connection socket is created to agree to the creation of the connection.
(4) to return the UDP service port number to the client via the connection socket.
(5) using the connection socket and the data socket to communicate with the customer.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
tcpip3/
tcpip3/Server/
tcpip3/Server/._Server.cpp
tcpip3/Server/Debug/
tcpip3/Server/Debug/Server.exe
tcpip3/Server/Debug/Server.ilk
tcpip3/Server/Debug/Server.obj
tcpip3/Server/Debug/Server.pch
tcpip3/Server/Debug/Server.pdb
tcpip3/Server/Debug/vc60.idb
tcpip3/Server/Debug/vc60.pdb
tcpip3/Server/Server.cpp
tcpip3/Server/Server.dsp
tcpip3/Server/Server.dsw
tcpip3/Server/Server.ncb
tcpip3/Server/Server.opt
tcpip3/Server/Server.plg
tcpip3/Server/StdAfx.cpp
tcpip3/Server/StdAfx.h
tcpip3/TCPclient/
tcpip3/TCPclient/._client.cpp
tcpip3/TCPclient/Debug/
tcpip3/TCPclient/Debug/client.exe
tcpip3/TCPclient/Debug/client.ilk
tcpip3/TCPclient/Debug/client.obj
tcpip3/TCPclient/Debug/client.pch
tcpip3/TCPclient/Debug/client.pdb
tcpip3/TCPclient/Debug/vc60.idb
tcpip3/TCPclient/Debug/vc60.pdb
tcpip3/TCPclient/StdAfx.cpp
tcpip3/TCPclient/StdAfx.h
tcpip3/TCPclient/client.cpp
tcpip3/TCPclient/client.dsp
tcpip3/TCPclient/client.dsw
tcpip3/TCPclient/client.ncb
tcpip3/TCPclient/client.opt
tcpip3/TCPclient/client.plg
tcpip3/UDPclient/
tcpip3/UDPclient/._client.cpp
tcpip3/UDPclient/Debug/
tcpip3/UDPclient/Debug/Server.obj
tcpip3/UDPclient/Debug/client.exe
tcpip3/UDPclient/Debug/client.ilk
tcpip3/UDPclient/Debug/client.obj
tcpip3/UDPclient/Debug/client.pch
tcpip3/UDPclient/Debug/client.pdb
tcpip3/UDPclient/Debug/vc60.idb
tcpip3/UDPclient/Debug/vc60.pdb
tcpip3/UDPclient/ReadMe.txt
tcpip3/UDPclient/StdAfx.cpp
tcpip3/UDPclient/StdAfx.h
tcpip3/UDPclient/client.cpp
tcpip3/UDPclient/client.dsp
tcpip3/UDPclient/client.dsw
tcpip3/UDPclient/client.ncb
tcpip3/UDPclient/client.opt
tcpip3/UDPclient/client.plg
tcpip3/Server/
tcpip3/Server/._Server.cpp
tcpip3/Server/Debug/
tcpip3/Server/Debug/Server.exe
tcpip3/Server/Debug/Server.ilk
tcpip3/Server/Debug/Server.obj
tcpip3/Server/Debug/Server.pch
tcpip3/Server/Debug/Server.pdb
tcpip3/Server/Debug/vc60.idb
tcpip3/Server/Debug/vc60.pdb
tcpip3/Server/Server.cpp
tcpip3/Server/Server.dsp
tcpip3/Server/Server.dsw
tcpip3/Server/Server.ncb
tcpip3/Server/Server.opt
tcpip3/Server/Server.plg
tcpip3/Server/StdAfx.cpp
tcpip3/Server/StdAfx.h
tcpip3/TCPclient/
tcpip3/TCPclient/._client.cpp
tcpip3/TCPclient/Debug/
tcpip3/TCPclient/Debug/client.exe
tcpip3/TCPclient/Debug/client.ilk
tcpip3/TCPclient/Debug/client.obj
tcpip3/TCPclient/Debug/client.pch
tcpip3/TCPclient/Debug/client.pdb
tcpip3/TCPclient/Debug/vc60.idb
tcpip3/TCPclient/Debug/vc60.pdb
tcpip3/TCPclient/StdAfx.cpp
tcpip3/TCPclient/StdAfx.h
tcpip3/TCPclient/client.cpp
tcpip3/TCPclient/client.dsp
tcpip3/TCPclient/client.dsw
tcpip3/TCPclient/client.ncb
tcpip3/TCPclient/client.opt
tcpip3/TCPclient/client.plg
tcpip3/UDPclient/
tcpip3/UDPclient/._client.cpp
tcpip3/UDPclient/Debug/
tcpip3/UDPclient/Debug/Server.obj
tcpip3/UDPclient/Debug/client.exe
tcpip3/UDPclient/Debug/client.ilk
tcpip3/UDPclient/Debug/client.obj
tcpip3/UDPclient/Debug/client.pch
tcpip3/UDPclient/Debug/client.pdb
tcpip3/UDPclient/Debug/vc60.idb
tcpip3/UDPclient/Debug/vc60.pdb
tcpip3/UDPclient/ReadMe.txt
tcpip3/UDPclient/StdAfx.cpp
tcpip3/UDPclient/StdAfx.h
tcpip3/UDPclient/client.cpp
tcpip3/UDPclient/client.dsp
tcpip3/UDPclient/client.dsw
tcpip3/UDPclient/client.ncb
tcpip3/UDPclient/client.opt
tcpip3/UDPclient/client.plg
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.