-
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
-
CHATROOM
chat room using winsock in visual basic
- 2015-11-20 04:00:10下载
- 积分:1
-
sf(V2.5)
说明: 封包程序 用与特种部队的 封包发送功能
及其他的一些功能
(Packet with the special procedures of the packets used to send function and other functions)
- 2009-08-13 07:37:31下载
- 积分:1
-
SocketPackage
这是一个完整的网络数据包截获程序,类似WPE,使用了SPI、DLL注入、键盘截获等原理,如今的游戏都可以封杀WPE进程了,那就用这个程序吧。在XP下VC6编译通过(This is a complete network data packets intercepted procedures similar AE, the use of the SPI, DLL injection, Keyboard intercepted and so on, today's game can be killed AE process, we would use this procedure it. In XP VC6 compile)
- 2007-01-30 11:30:29下载
- 积分:1
-
socket
这是一个简单的socket编程例子,非常适合刚接触socket编程者。程序简单、可用、易于理解。是个很好的socket范例。(A simple socket programming examples. Suitable for beginners. Program is simple, available, easy to understand.
Is a good example of socket programming.)
- 2013-09-16 15:38:21下载
- 积分:1
-
WinPcap
WinPcap中文帮助手册,网络编程必备帮助文档,包含了大量的函数。(WinPcap Chinese help manuals, network programming necessary to help document, contains a large number of functions.)
- 2009-01-10 15:39:48下载
- 积分:1
-
network
计算机网络讲义谢西仁的,非常出名第五版计算机网络讲义谢西仁的,非常出名第五版(West Yan Xie computer network notes, very well-known computer network notes the fifth edition of the West Yan Xie, very famous Fifth Edition)
- 2010-05-27 17:53:22下载
- 积分:1
-
VB 例程序讲解
说明: VB 例程序讲解
、局域网聊天程序
二、可以换肤的窗体
三、richtext实现的文本编辑器
四、用OLE实现文件拖放
五、窗体卸载时弹出确认对话框
六、让控件大小随窗体改变而改变
七、拖动无标题栏窗体
八、在打开文件对话框中选择多文件
(VB procedures on cases, two LAN chat program, the Eurocargo Form 3, the realization richtext text editor 4, OLE files with drag-and-drop 5, Form unloading pop confirmation dialog box six, with the size controls Form change of seven, dragging Untitled Form 8 column, in fighting to open a file selection dialog many documents)
- 2005-12-08 17:04:27下载
- 积分:1
-
1
说明: 本程序是window平台下,使用virtual C++编写文件下载程序,使用了Http协议(This program is a window platform, use the virtual C++ writing the file download process, using Http protocol)
- 2012-10-17 09:10:34下载
- 积分:1
-
r3network
在ring3下能开启、禁用网卡的示例程序。很好很强大。。。-_-#(Ring3 under the open, disable the network card of the sample programs. Very good very strong. . .-_-#)
- 2008-05-19 18:08:32下载
- 积分:1