Description: Windows下的服务程序,一个server,一个client,server监听SOCKET-serve program in windows,a server ,a client ,
server listen socket Platform: |
Size: 9074 |
Author:张龙萍 |
Hits:
Description: 这是我本科毕业设计的作品。实现了Window下网络通讯编程,包含服务器端和客户端两方面程序。主要实现了以下几个功能:1.Socket API编程,而不是WinSock编程,代码可以很方便地移植到Unix系统下;2. 多线程的管理机制,整个系统由一个主线程、一个管理线程,一个监听线程,若干个工作子线程构成,很好地解决了多线程的管理,资源的释放。3. 程序可以在真实局域网络环境下运行(即在一个主机上运行服务器端程序,在另外多台机器上分别运行一个客户端,可以实现通信),也可以在一个虚拟的环境下运行、演示(即,在一个机器上既运行服务器程序,也可以同时运行多个客户程序,通过设置各个客户程序的IP参数来模拟多台客户机对服务器的访问)-This is my undergraduate graduate design work. Window achieved under network communications programming, including server and client both procedures. Major Implementation of the following functions : 1.Socket API programming, and not WinSock programming, code can be easily ported to Unix systems; 2. Multithreading management mechanism, the entire system from a main thread, a management thread, a thread monitoring, a number of work-thread structure, a good solution to the multi-thread management, Resources release. 3. Procedures in a real LAN operating environment (that is, in a mainframe running server applications, In another multiple machines were running a client, can achieve communications), also in a virtual operating environment, the demo (that is, in a machine running both the serve Platform: |
Size: 734694 |
Author:龚勋 |
Hits:
Description: Windows下的服务程序,一个server,一个client,server监听SOCKET-serve program in windows,a server ,a client ,
server listen socket Platform: |
Size: 9216 |
Author:张龙萍 |
Hits:
Description: 用vc6.0实现的强大有界面的sockets通讯程序,可使server端与client端即时通信,需先运行server端。-Vc6.0 achieved using a powerful interface sockets are the communication process, will enable the server-side and client-side real-time communications, the need to run server-side. Platform: |
Size: 75776 |
Author:bean |
Hits:
Description: TCP套接字编程实现:
开发一个多线程服务器,它能并行服务于多个请求。
提示:
用Java或c/c++语言开发;
通过调用操作系统API接口创建线程;
假定3个客户端,客户端i发送“Hi,God”,服务器回答“What can I do for you, my son i”,客户端收到后显示服务器回答。
分别用TCP和UDP两个协议来测试,端口号自定义
-TCP socket programming: Develop a multi-threaded server, it can serve multiple requests in parallel. Tip: Use Java or c/c++ language development by calling the operating system API interface to create threads assume 3 client, the client i send " Hi, God" , the server replied " What can I do for you, my son i" , displayed after the client receives the server reply. TCP and UDP were used to test the two protocols, port numbers Custom Platform: |
Size: 3072 |
Author:yelangya |
Hits:
Description: 这是一个linux下远程控制程序,采用并发服务器模型。客户端接收用户输入的命令,客户端通过套接字将命令传送给服务器端,服务器在收到用户的命令,对命令进行解析.在服务器端调用对应的命令,并将命令执行的结果发送给客户端,从而实现远距离控制的功能。服务器可同时对多个用户提供服务。-This is a remote control program under linux, using concurrent server model. The client receives commands entered by the user, the client through the socket to send commands to the server, the server receives the user' s command, to parse commands in the server-side calls the corresponding command, and sends the results to the command execution client, in order to achieve remote control functions. Server can serve multiple users simultaneously. Platform: |
Size: 12288 |
Author:kobe messi |
Hits:
Description: 1. 编写一个基于流式套接字的C/S通信程序,客户端与服务器建立连接之后,客户端向服务器发送一个简单的四则算式(只含一个算符),服务器收到这个算式后,对其进行计算,并将计算结果回送给客户端,客户端将计算结果显示出来。要求:
(1)服务器可以同时为多个客户提供服务。
(2)采用select模型实现。
2. 对于实验1的回射服务器采用select模型改写。
3.实现一聊天程序,要求采用WSAAyncSelect(异步选择)模型实现
-1. Write a C/S based on streaming socket communication program, the client and the server after the connection is established, the client to the server to send a simple four formula (containing only one operator), after the server receives this formula, the calculated, and the calculated results back to the client, the client to display results. Requirements:
(1) the server can serve multiple clients at the same time.
(2) using the model implementation.
2. As the experiment 1 echo server using the model.
3. Implement a chat program, require the use of WSAAyncSelect (asynchronous) model Platform: |
Size: 70656 |
Author:liu |
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: