DL : 2
SOCKET服务器,支持多客户端,含协议判断处理.
每个客户端有独立的数据队列做BUFFER,
采用异步SOCKET方式接收数据.
传上来换点分!对初学都应该还算是比较全面的.含全部源代码.
Date : 2008-08-14
Size : 141.36kb
User : elong2004
DL : 0
unix环境下socket编程服务器端示例。开发环境:gcc、vim。在linux和solaris上测试通过-unix environment server socket programming examples. Development environment : gcc, vim. Solaris and the Linux on the test
Date : 2008-10-13
Size : 936byte
User : 能通
DL : 0
sll socket 类
sll server socket
sllsession接口
Date : 2008-10-13
Size : 1.12kb
User : maohuihua
DL : 0
首先Server程序创建两个socket:
分别为 TCP socket(使用命令行参数指定端口号)
UDP socket(UDP端口号自定义,使用宏定义写在程序里,必须大于1024)。
server端在这两个端口上侦听连接,接受来自客户端的服务请求。
Date : 2009-10-29
Size : 26.86kb
User : rita552129
DL : 1
基于Mini2440的S3C2440的Socket编程源程序。
Date : 2010-09-09
Size : 57.67kb
User : wylne2008
DL : 0
使用VC编写的socket server和client简单程序
Date : 2010-09-29
Size : 1.14mb
User : traderchina2009@yahoo.com
DL : 1
利用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.
Date : 2025-07-11
Size : 1kb
User : 刘流
DL : 0
简单的vc Socket入门程序,对socket的基本结构有很清楚的描述,适合初学者初学者-vc Socket simple entry procedures, the basic structure socket has a very clear picture for beginners and beginners
Date : 2025-07-11
Size : 44kb
User : 张天
DL : 0
unix环境下socket编程服务器端示例。开发环境:gcc、vim。在linux和solaris上测试通过-unix environment server socket programming examples. Development environment : gcc, vim. Solaris and the Linux on the test
Date : 2025-07-11
Size : 1kb
User : 能通
DL : 0
基于API的套接字编程,可以检测到服务器和当前客户机的IP地址和端口号,并接收客户端信息。-Socket-based API programming, can be detected by the current server and client IP address and port number, and receive client information.
Date : 2025-07-11
Size : 21kb
User : 王志慧
DL : 0
the program is socket program of TCP client/Server structure.
Date : 2025-07-11
Size : 1.75mb
User : keith
DL : 0
SOCKET程式,包含SERVER及CLIENT端傳送及接收,可收字串-SOCKET program contains SERVER and CLIENT side the transmission and reception should be able to string
Date : 2025-07-11
Size : 2kb
User : tuchihhao
DL : 0
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.
Date : 2025-07-11
Size : 268kb
User : 赖旭员
DL : 0
Linux下的网络通信程序,请把SERVER跟CLIENT分别放在不同的两台机上运行测试.-Linux Network Communication Program, please CLIENT to SERVER with, respectively, on two different machines running tests.
Date : 2025-07-11
Size : 4kb
User : Feng
DL : 0
提供了非阻塞的客户端和服务器端通信的实例程序。用linux下的C语言实现。-Provides a non-blocking client and server-side examples of communication procedures. Under linux using C language.
Date : 2025-07-11
Size : 10kb
User : jidong
DL : 0
client server socket library using csharp
Date : 2025-07-11
Size : 10kb
User : 韩明
DL : 0
Multi-threaded Client/Server Socket Cla-Multi-threaded Client/Server Socket Class
Date : 2025-07-11
Size : 242kb
User : 周雄军
DL : 0
Server 端向Client 端提供两种服务:数学计算服务和时间查询服务.-client-server,TCP server socket and UDP server socket .
Date : 2025-07-11
Size : 31kb
User : 小猫
DL : 0
这是一个关于各种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)
Date : 2025-07-11
Size : 11kb
User : JIE2012
DL : 0
最为通用的网络通信---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.)
Date : 2025-07-11
Size : 22.81mb
User : caocaocancan
« 12
3
4
5
6
7
8
9
10
...
50
»
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus All Rights Reserved.