-
socket 通讯实例源码
socket 通讯实例源码
- 2014-06-19下载
- 积分:1
-
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
-
Router
说明: 手写路由,使用C++模拟路由的过程,包括ARP请求以及应答(Router Writen by C++ including ARP)
- 2020-06-25 10:20:01下载
- 积分:1
-
netDate
VC++源程序实现同步网络时间,基于C/S结构,启动服务端程序后,需要在客户端输入服务端的IP地址,然后点击“同步”按钮,如果顺利连接的话,则完成与服务器端的时间同步,注意,本程序并非是连接世界官方时间服务器,比如微软的时间同步服务器、NIST的服务器等,而是用本程序中的服务端来代替了。
(VC++ source code to synchronize network time, based on C/S structure, start the server program, you need the client enter the service side of the IP address, then click the " Sync" button, if successfully connected, then finished with the server time synchronization Note that this procedure is not an official time server connected world, the time synchronization server such as Microsoft, NIST' s servers, but with this program instead of the server.)
- 2011-04-27 21:40:09下载
- 积分:1
-
网络通用采集工具 完整源码下载
Soukey采摘数据采集软件是一套面向个人站长、中小企业提供的一套免费开源的数据采集软件,可用于文章、论坛、博、企业信息等各种网站信息的采集,同时可 自由发布到文件、数据库,通知也支持Web在线发布功能。同时,如果您了解技术,还可在Soukey采摘基础上扩展更加丰富的功能,包括:舆情监控、RSS制作、行业化 数据采集等功能。 Soukey采摘数据采集软件使用不受任何限制,源代码使用请遵循BSD许可协议。1、多任务、多线程,支持一个任务运行多个实例; 2 、支持图片、Flash及文件下载; 3、网址配置支持参数定制,及外部字典参数; 4、支持Cookie、POST采集; 5、支持导航、自动翻页; 6 、可采集Ajax数据; 7、采集数据临时存储、断点续采; 8 、支持数据导出,文件、数据库; 9 、在线数据发布; 10 、数据采集支持采集数据加工; 11 、支持任务计划; 12 、支持任务触发器; 13、提供网址编/解码工具; 14 、提供Mini浏览器; 15、支持简体中文及英文;
- 2020-10-28 08:59:58下载
- 积分:1
-
ChatClient
基于MFC框架应用SOCKET的聊天室客户端,在VS2015上完美运行(SOCKET chat room client based on MFC framework, running perfectly on VS2015)
- 2018-08-09 11:11:28下载
- 积分:1
-
UDS
cOffice通用OA系统源代码 OA系统 通用 cOffice 通用OA系统源代码(OA system cOffice general OA system source code cOffice General General OA system source code)
- 2009-04-29 18:30:45下载
- 积分:1
-
Chat
网络通信客户端程序,利用vc++编程,简单方便,也实用(Network communication client program to use vc++ programming, is simple and convenient, but also practical)
- 2009-04-04 11:34:27下载
- 积分:1
-
C#自动更换IP实例源码下载
C#自动更换IP实例
- 2013-01-24下载
- 积分:1
-
串口通讯测试工具(源码)
1软件打开时,自动检测有效COM端口 2 软件打开时,自动复原到上次关闭时的状态 3 不必关闭串口,即可直接进行更改初始化设置内容(串口号、波特率、数据位、停止位、校验位),可按更改后的信息自动将串口重新打开 4 可统计接收字节和发送字节的个数 5 接收数据可按16进制数据和非16进制数据进行整体转换 6 可将接收到数据进行保存 7 可设置自动发送,发送时间可进行实时更改 8可按字符串、16进制字节、文件方式进行发送,字符串和16进制字节可分别进行存储,内容互不干扰 9 按16进制发送时,可自动校验格式,不会输错 10 可清空发送或接收区域的数据
- 2020-03-02下载
- 积分:1