Description: 一个多线程实现的TCP服务端 listen, 在accept一个请求后,再启动一个线程来处理对应的socket-a multithreaded achieving TCP server listen, accept a request and then start a thread to handle the corresponding socket Platform: |
Size: 6621 |
Author:无形 |
Hits:
Description: 于多线程tcp服务的对应的客户端代码,主要实现发送命令到服务器然后再出来从服务器端返回的命令-in multithreaded tcp services, the corresponding client code, the main sending commands to the server and then out from the server to return to the order Platform: |
Size: 6920 |
Author:无形 |
Hits:
Description: 最全面的基于TCP/IP的FTP服务器端要和我上传的客户端一起使用,还有聊天的功能,java程序代码,多线程设计,我花了将近二个月的时间-the most comprehensive TCP / IP-based FTP server to upload and my client used together, chat functions, java code, multithreaded design, I spent nearly two months of the time Platform: |
Size: 3621 |
Author:彭宇 |
Hits:
Description: 多线程 网络传输
开发环境:Delphi7.0+WinXP,没用其他控件(除了Delphi自带的Indy)
传输协议:TCP/IP
客户端一次发送65000字节的包,服务端负责组装并处理数据粘连。
使用ReadBuffer(),Send()函数来接收发送Buffer内字节,这样作的目的是使程序具有更好的灵活性。你可以自定义Buffer内那些字节的含义,例如是字符串、图像、声音、命令等等。
文件的多线程读写采用windows内存映像技术。
关键的服务器处理函数IdTCPServer1Execute(AThread: TIdPeerThread)是非线程安全的。如果使用临界区,那么多线程将在这里串行执行,严重降低多线程效率。对此,我采用一个简单的办法,具体可以看程序。-multithreaded network transmission development environment : Delphi7.0 WinXP, useless other controls (except for the Delphi Indy own) transmission protocol : TCP / IP client to send a 65,000-byte packets, the server is responsible for assembling and processing data adhesion. Use ReadBuffer (), Send () function to receive this Buffer byte, for the purpose of this is to make procedures better flexibility. You can define Buffer byte within the meaning of those, such as strings, images, sounds, etc. order. The documents used to read and write multi-threaded windows memory mapping technology. Key server function IdTCPServer1Execute (AThread : TIdPeerThread) non-thread safe. If the use of critical areas, so many threads here on serial implementation, a serious decline in the efficiency of multit Platform: |
Size: 69644 |
Author:水滴 |
Hits:
Description: 它包括服务器端程序TcpServer和客户端程序TcpClient主要才用socket 编程,
本程序采用tcp/ip socket多线程编程,并对一些重要的同步操作做了超时控制,以减少等待的时间,像连接服务器基本功能跟QQ类似,能进行多点的聊天和点对点的文件传送。这种编程的优势在于传送的数据不会丢失,而且用户上线下线时能即时反应出来.
-It includes procedures TcpServer server and client TcpClient mainly spent socket programming, the program uses a tcp / ip socket multithreaded programming, as well as some important synchronous operation done to control overtime, in order to reduce the waiting time, such as servers connected with the basic functions of QQ similar conduct multiple points of the peer-to-peer chat and file transfer. The advantages of this program is to transmit the data will not be lost, but users on the line when the assembly line immediately reflected. Platform: |
Size: 15432977 |
Author:陈超群 |
Hits:
Description: 类似于QQ的局域网聊天软件,包括服务器端和客户端程序,采用tcp/ip socket多线程编程,-similar to the LAN QQ chat software, including server and client, using tcp / ip socket multithreaded programming, Platform: |
Size: 153036 |
Author:于文洋 |
Hits:
Description: 类似于QQ的局域网聊天软件,包括服务器端和客户端程序,采用tcp/ip socket多线程编程,服务器端主要负责客户端用户的注册登陆,用户资料的获取.客户端负责与其他客户端进行信息控制与传递(包括聊天和传送文件). -similar to the LAN QQ chat software, including server and client, using tcp / ip socket multithreaded programming, the server-client primarily responsible for the registration of land users, user information access. Client with the other client information control and transmission (packet includes chat and transmission). Platform: |
Size: 248690 |
Author:耿丹飞 |
Hits:
Description: 类似于QQ的局域网聊天软件,包括服务器端和客户端程序,采用tcp/ip socket多线程编程,-similar to the LAN QQ chat software, including server and client, using tcp/ip socket multithreaded programming, Platform: |
Size: 263168 |
Author:于文洋 |
Hits:
Description: 基于TCP协议的多线程通讯源码,包括服务器和客户端,工程文件基于VS9.0的Win32控制台程序,实现了通讯链路异常中断的检测和重新连接等,包含可执行文件。-Multithreaded communication based on TCP protocol source code, including server and client, the project file is based on VS9.0 Win32 console program abort communication link detection and reconnect contains an executable file. Platform: |
Size: 5566464 |
Author: |
Hits:
Description: 类似于QQ的局域网聊天软件,包括服务器端和客户端程序,采用tcp/ip socket多线程编程,服务器端主要负责客户端用户的注册登陆,用户资料的获取.客户端负责与其他客户端进行信息控制与传递(包括聊天和传送文件). -similar to the LAN QQ chat software, including server and client, using tcp/ip socket multithreaded programming, the server-client primarily responsible for the registration of land users, user information access. Client with the other client information control and transmission (packet includes chat and transmission). Platform: |
Size: 248832 |
Author:耿丹飞 |
Hits:
Description: 一个多线程实现的TCP服务端 listen, 在accept一个请求后,再启动一个线程来处理对应的socket-a multithreaded achieving TCP server listen, accept a request and then start a thread to handle the corresponding socket Platform: |
Size: 6144 |
Author:无形 |
Hits:
Description: .Ne 环境的下多线程的TCP/UDP 编程示例子,里面包括了服务器也客户端程序-. Ne environment under the multi-threaded TCP/UDP programming examples son, which includes the server client program Platform: |
Size: 3072 |
Author:蓝鸥 |
Hits:
Description: 最全面的基于TCP/IP的FTP服务器端要和我上传的客户端一起使用,还有聊天的功能,java程序代码,多线程设计,我花了将近二个月的时间-the most comprehensive TCP/IP-based FTP server to upload and my client used together, chat functions, java code, multithreaded design, I spent nearly two months of the time Platform: |
Size: 3072 |
Author:彭宇 |
Hits:
Description: 多线程 网络传输
开发环境:Delphi7.0+WinXP,没用其他控件(除了Delphi自带的Indy)
传输协议:TCP/IP
客户端一次发送65000字节的包,服务端负责组装并处理数据粘连。
使用ReadBuffer(),Send()函数来接收发送Buffer内字节,这样作的目的是使程序具有更好的灵活性。你可以自定义Buffer内那些字节的含义,例如是字符串、图像、声音、命令等等。
文件的多线程读写采用windows内存映像技术。
关键的服务器处理函数IdTCPServer1Execute(AThread: TIdPeerThread)是非线程安全的。如果使用临界区,那么多线程将在这里串行执行,严重降低多线程效率。对此,我采用一个简单的办法,具体可以看程序。-multithreaded network transmission development environment : Delphi7.0 WinXP, useless other controls (except for the Delphi Indy own) transmission protocol : TCP/IP client to send a 65,000-byte packets, the server is responsible for assembling and processing data adhesion. Use ReadBuffer (), Send () function to receive this Buffer byte, for the purpose of this is to make procedures better flexibility. You can define Buffer byte within the meaning of those, such as strings, images, sounds, etc. order. The documents used to read and write multi-threaded windows memory mapping technology. Key server function IdTCPServer1Execute (AThread : TIdPeerThread) non-thread safe. If the use of critical areas, so many threads here on serial implementation, a serious decline in the efficiency of multit Platform: |
Size: 69632 |
Author:水滴 |
Hits:
Description: vc源代码,用于windows环境下socket编程,相关的方法封装成类Class,非常好用,并且支持多线程环境下使用。-vc source code for windows environment socket programming, related to the encapsulation method Class category, very convenient, and to support multithreaded environment. Platform: |
Size: 3072 |
Author:lvzhuqiang |
Hits:
Description: qt实现的多线程服务器和客户端,可以用来学习QT下的socket网络编程-qt multithreaded implementation of server and client can be used to study QT network programming socket under Platform: |
Size: 110592 |
Author:yangming |
Hits:
Description: 这是一个关于各种IO模型的socket server实现与测试。
这里采用多种模型实现了一个TCP ECHO服务器,将client发送的内容echo回去。
client每秒会发送一次请求,server保持并发连接并进行相应。
现已实现的模型:
base: 最原始的echo服务器
thread: 多线程模型
select: select模型
poll: poll模型
epoll: epoll模型
参数
修改src/clients.sh 可以生成指定数量的client
修改src/base.cpp 中的MAX_CLIENT_NUM参数调整server最大服务数
修改src/base.cpp 中的CLIENT_INTERVAL参数调整client发包间隔
修改Makefile 中的DEBUG参数确定是否输出调试信息
使用方法(This is a socket server implementation and testing of various IO models.
Here, a variety of models are used to implement a TCP ECHO server that returns the contents sent by echo back to client.
Client sends a request per second, and server maintains concurrent connections and performs them accordingly.
The model has been implemented:
Base: the most primitive echo server
Thread: multithreaded model
Select: select model
Poll: poll model
Epoll: epoll model
parameter
Modify src/clients.sh to generate a specified number of client
Modify the MAX_CLIENT_NUM parameter in src/base.cpp to adjust the maximum number of server services
Modify the CLIENT_INTERVAL parameter in src/base.cpp to adjust the client contract interval
Modify the DEBUG parameter in the Makefile to determine whether output debugging information is out
Usage method) Platform: |
Size: 11264 |
Author:JIE2012
|
Hits: