-
client-server
多协议文件传输c/s网络应用设计与实现,程序用 TCP/UDP 两个协议模拟多协议服务器。首先服务器端要将两种协议的套接字创建好,并且监听 TCP 端口的连接。必要时使用select函数来进行多连接处理和非阻塞处理。而客户端直接可以按照发送的地址和端口号来进行通讯。
首先要运行服务器端,服务器会监听 TCP 端口。然后运行客户端,根据事先设定好的 IP和端口,就可以进行连接传输数据了。
程序实现的关键步骤:
以TCP协议为例
服务器端:
1.创建套接字;2.绑定端口;3.进入无穷的循环;4.接收请求;5.处理请求;6.应答。
客户端:
1.找到服务器的IP地址和协议的端口号;2.创建套接字;3.确定连接需要任意的,没有使用的端口号允许TCP去选择一个;4.将套接字和服务器连接;5.使用应用层协议和服务器交互;6.关闭连接。
(Multi-protocol file transfer c/s network application design and implementation of programs simulate multi-protocol server with TCP/UDP both protocols. First socket server to create a good two protocols, TCP port and listens for connections. If necessary, use the function to handle multiple connections and non-blocking treatment. And the client can follow directly address and port number to communicate.
First run on the server side, the server listens on TCP port. Then run the client, according to pre-configured IP and port, you can connect the data transmission.
The key step program implementation:
In TCP protocol as an example
Service-Terminal:
1. Create a socket 2 bound port 3 enter an infinite loop 4. receiving a request 5. processing requests 6 response.
Clients:
1. Locate the server s IP address and protocol port number 2 creates a socket 3 connections need to determine arbitrary, unused port allows TCP to choose a 4 and the socket server connections 5 using appli)
- 2016-07-11 10:19:07下载
- 积分:1
-
update-online
一套完整的在线升级程序,只需修改配置文件即可成为自己的升级程序。(A complete set of online upgrade program, simply modify the configuration file to become their own upgrade process.)
- 2013-09-18 09:28:45下载
- 积分:1
-
ChatRoom(Winsock)
这是一个用于局域网内部进行聊天通信的小软件源程序,对于学习和了解winsock编程很有借鉴意义。(This is a chat for LAN communications within a small software source code, for learning and understanding of referential significance to winsock programming.)
- 2008-12-28 13:45:26下载
- 积分:1
-
myOwnServer002
我的网络编程作业,服务器端的应用程序,与myOwnClient001一起使用(my network programming operations, the server-application procedures used together with myOwnClient001)
- 2007-04-01 08:19:48下载
- 积分:1
-
rqueue-aodv
说明: 多播协议源代码分析,此代码是在AODV协议上的改进算法。(Multicast protocol source code analysis, this code is in the improved algorithm of AODV protocol.)
- 2011-04-14 19:15:21下载
- 积分:1
-
CSmtp
使用Base64编码实现的相应的邮件的发送的程序,// Original class CFastSmtp written by
// christopher w. backen <immortal@cox.net>
// More details at: http://www.codeproject.com/KB/IP/zsmtp.aspx(Achieved using the Base64 encoding to send the message corresponding procedures,// Original class CFastSmtp written by// christopher w. backen <immortal@cox.net>// More details at: http://www.codeproject.com/KB/IP/zsmtp.aspx)
- 2010-05-26 13:06:49下载
- 积分:1
-
AutoUpdater
通过客户端与服务器端文件对比,实现自动升级功能。(Through the client and server-side document comparison, automatic update feature.)
- 2009-10-27 12:22:34下载
- 积分:1
-
Computernetwork
计算机网络课程设计计算机网络课程设计计算机网络课程设计(Computer network)
- 2011-01-15 16:43:38下载
- 积分:1
-
tes
对于网络开发包的详细解释,包括了libcap和libnid等(For a detailed explanation of the network development kit, including the libcap and libnid of)
- 2012-10-23 10:24:33下载
- 积分:1
-
WinInet
vc++可视化编程,包括网络编程部分,压缩包里面的是源代码,可直接运行。(vc++ visual programming, including network programming part of the compressed packet inside the source code can be directly run.)
- 2009-12-21 12:43:00下载
- 积分:1