-
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
-
socket--programme--base
socket 编程基础 里面主要是介绍性文字和少量代码(socket programming which is mainly based introductory text and a small amount of code)
- 2011-09-10 20:23:22下载
- 积分:1
-
aonitor-domain-number
材料力学课程的作业,用于惯性矩的计算,但也是我平时学VB的积累,(The homework in the mechanics of materials course is used for the calculation of moment of inertia, but it is also the accumulation of VB in my usual study.)
- 2018-12-05 05:07:55下载
- 积分:1
-
58296017YanErDownloader
断点续传 http download ftp mfc(http download download download )
- 2011-05-23 14:11:39下载
- 积分:1
-
cmd1012
服务级后门T-Cmd源代码服务级后门T-Cmd源代码(Service-level backdoor T-Cmd source service-level backdoor T-Cmd source code)
- 2016-10-22 10:46:35下载
- 积分:1
-
TCP_UDP_IRC
socket通信tcp实现的聊天室程序源码(tcp socket communication program source code to achieve the chat room)
- 2020-09-11 13:38:01下载
- 积分:1
-
nas
从libnids得到TCP重组的数据,当libnids的状态为NIDS_JUST_EST时,表示TCP建立连接,在此时给TCP流增加一个flow_id用来标识此连接;当libnids的状态为NIDS_DATA时,表示接受数据,当有新的数据到达时,根据flow_id把数据push到相应的流表中,为之后的数据分析做准备。因此,可以在此框架上增加符合http协议的应用解析(Data TCP libnids restructuring, when libnids status to NIDS_JUST_EST, said the TCP connection is established, at the same time adds a flow_id to TCP flow is used to identify this connection When libnids status to NIDS_DATA, accepted data, when new data arrives, according to flow_id to push data to the corresponding flow table, prepare the way for after data analysis. Can be increased on this framework, therefore, in accordance with the application of the HTTP protocol parsing)
- 2015-02-02 17:44:36下载
- 积分:1
-
DDOSSCOMtermmO
1.DOS下使用,功能类似于WINDOWS的超级终端 2.支持COM1,COM2 3..支持波特率2400,4800,96600(缺省),19200,38400,57600,115200 4.支持Xmodem文件传输协议,,Asm,Com Port 可直接使用。
">
- 2012-09-15 11:57:07下载
- 积分:1
-
LAN-monitoring-system
局域网监控系统采用vc++6.0编写,需要oracle数据库(LAN monitoring system)
- 2013-12-13 22:03:19下载
- 积分:1
-
StressMark压力测试程序
StressMark测试软件是一个使用Visual C++编写的,开放源代码的测试工具,可以完成服务程序及重要算法的功能和性能测试,其最主要的功能是模拟多线程或多客户端的自动化压力测试。(StressMark test software is a Visual C prepared in the open-source testing tool, service procedures to be completed and important algorithm functional and performance tests, its main function is simulated multi-threaded or multi-client automation pressure tests.)
- 2005-05-02 02:44:47下载
- 积分:1