Description: unix环境下socket编程服务器端示例。开发环境:gcc、vim。在linux和solaris上测试通过-unix environment server socket programming examples. Development environment : gcc, vim. Solaris and the Linux on the test Platform: |
Size: 936 |
Author:能通 |
Hits:
Description: 利用Socket编程制作一个简单的C/S应用。其中,Client端为GUI程序,用于提供界面输入两个数,并有1个“发送”按钮,另外还有一个 TextField用于显示传来的计算结果;Server端用于监听连接请求、计算发送过来的两数的和、送回数据结果。-Socket programming produced using a simple C/S applications. Which side of the GUI Client procedures used to provide input interface number two, and a "send" button, there is another TextField came for the show results; Terminal Server connectivity for wiretapping request, sent over the calculation of the number two and, for the return data results. Platform: |
Size: 1024 |
Author:刘流 |
Hits:
Description: 简单的vc Socket入门程序,对socket的基本结构有很清楚的描述,适合初学者初学者-vc Socket simple entry procedures, the basic structure socket has a very clear picture for beginners and beginners Platform: |
Size: 45056 |
Author:张天 |
Hits:
Description: unix环境下socket编程服务器端示例。开发环境:gcc、vim。在linux和solaris上测试通过-unix environment server socket programming examples. Development environment : gcc, vim. Solaris and the Linux on the test Platform: |
Size: 1024 |
Author:能通 |
Hits:
Description: 基于API的套接字编程,可以检测到服务器和当前客户机的IP地址和端口号,并接收客户端信息。-Socket-based API programming, can be detected by the current server and client IP address and port number, and receive client information. Platform: |
Size: 21504 |
Author:王志慧 |
Hits:
Description: SOCKET程式,包含SERVER及CLIENT端傳送及接收,可收字串-SOCKET program contains SERVER and CLIENT side the transmission and reception should be able to string Platform: |
Size: 2048 |
Author:tuchihhao |
Hits:
Description: Winsocket通讯程序,为新手学习如何编写Socket通讯提供很好的例子,1个是客户端程序,1个是服务器程序.-WinSocket communication procedures for the novice to learn how to prepare Socket Communications to provide good example is a client program, is a server program. Platform: |
Size: 274432 |
Author:赖旭员 |
Hits:
Description: Linux下的网络通信程序,请把SERVER跟CLIENT分别放在不同的两台机上运行测试.-Linux Network Communication Program, please CLIENT to SERVER with, respectively, on two different machines running tests. Platform: |
Size: 4096 |
Author:Feng |
Hits:
Description: 提供了非阻塞的客户端和服务器端通信的实例程序。用linux下的C语言实现。-Provides a non-blocking client and server-side examples of communication procedures. Under linux using C language. Platform: |
Size: 10240 |
Author:jidong |
Hits:
Description: Server 端向Client 端提供两种服务:数学计算服务和时间查询服务.-client-server,TCP server socket and UDP server socket . Platform: |
Size: 31744 |
Author:小猫 |
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:
Description: 最为通用的网络通信---SOCKET通信的示例程序,包含一个服务器Socket和一个客户端Socket,注释详细,简单易理解。(The most common example of network communication ---SOCKET communication program, including a server Socket and a client Socket, Notes detailed, easy to understand.) Platform: |
Size: 23919616 |
Author:caocaocancan
|
Hits: