-
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
-
CapturePacket
网络抓包与协议分析,实现图形用户界面,能利用原始套接字编程接口(winpcap)进行抓包,能对抓包的内容进行分层显示和各字段数值显示,可对抓包进行过滤,将抓包的内容存入数据库。
(Network packet capture and protocol analysis, graphical user interface, to use raw socket programming interface (winpcap) conducted capture, able to capture and display the contents of each field value hierarchical display, capture can be filtered, The capture of the content stored in the database.)
- 2021-03-28 15:59:11下载
- 积分:1
-
AVI_Transport
:文章介绍了在局域网有关AVI文件视频流的实时操作中如何获取AVI视
频流,利用系统压缩管理器实现视频压缩,并实现视频图像的快速显示等问题。具体
讨论了在利用UDP协议进行数据传输时平滑突发数据流、恢复接收数据包的次序
等问题。(: This paper introduces the relevant AVI file in the local area video streaming real-time operation How to obtain the AVI video stream, using System Manager to achieve compression video compression, and to achieve rapid display video images and so on. Specifically discussed the use of UDP protocol for data transmission when the unexpected smooth data flow and restore order to receive packets and so on.)
- 2008-01-24 11:21:17下载
- 积分:1
-
webspider
说明: 可以从网络上下载网页,采用多线程编程技术,下载速度更快,并可以记录下载网页数量(network can be downloaded from the website, using multithreaded programming techniques, faster download speeds and can be downloaded from the website record number)
- 2005-09-11 09:10:50下载
- 积分:1
-
SIO_GET_BROADCAST_ADDRESS
Get Broacdcast address in C
- 2007-08-02 10:00:14下载
- 积分:1
-
hacker
学习网络安全的一本书籍。《黑客入侵(超级详细版)》(A learning network security books. " Hacking (super-detailed version)" )
- 2014-01-10 23:46:45下载
- 积分:1
-
ServerSocket
一个很好的winsock tcp/ucp示例,相信看了肯定收益颇丰(a good example for winsock about tcp/udp)
- 2009-10-31 09:05:50下载
- 积分:1
-
ipmsg
IPmsg的源代码,用于研究其中所用到的协议和算法(IPmsg source file)
- 2012-04-08 14:55:39下载
- 积分:1
-
Chat
异步套接字编写的网络聊天室程序,根据孙鑫VC++深入详解的例子改写,使用Visual studio 2008 SP1在Unicode编码环境下编写,可以收发中文字符。(Asynchronous socket program written in Internet chat rooms, according to Sun Xin VC++ depth Detailed examples rewritten using Visual studio 2008 SP1 environment written in Unicode encoding, you can send and receive Chinese characters.)
- 2013-11-28 14:44:55下载
- 积分:1
-
D-Link
通用的设置路由器局域网端口映射类源码,仅供参考(Set up the router LAN port mapping class source code, for reference only)
- 2012-02-13 20:03:50下载
- 积分:1