Location:
Search - epoll socket
Search list
Description: Linux epoll socket server-Linux server socket epoll
Platform: |
Size: 2421 |
Author: huang |
Hits:
Description: Lock.cpp : 锁的操作 , 读锁可以并发 , 写锁独占.
Queue.h : 队列的封装 , 队列的读和写都加了锁的保护.
Socket.cpp : 套接口的简单封装.
Thread.cpp : 线程的封装实现了些简单的线程停止,运行等功能 , 启动别的线程的时候需要继承次类.
Worker.cpp : 用户接口类 , 用户需继承此类。
ListenThread.cpp(继承Thread.cpp) : 服务器监听线程.如果有客户端连接通知ThreadPool类,由ThreadPool类进行任务分派.
TaskThread.cpp(继承Thread.cpp) : 具体任务类,负责接受客户端发送数据.
ThreadPool.cpp (继承Thread.cpp) : 线程池类负责启动别的线程 , 并且进行线程调度。首先启动ListenThread.cpp类,如果有客户端
连接ListenThread.cpp类发送信号通知ThreadPool.cpp类,收到信号再分配给TaskThread.cpp类,进行处理。如果没有空闲任务类,动态再
创建一定数目的任务类。
Platform: |
Size: 300757 |
Author: 77501578@qq.com |
Hits:
Description: Linux epoll socket server-Linux server socket epoll
Platform: |
Size: 2048 |
Author: huang |
Hits:
Description: linux平台epoll封装,完成socket事件回调功能-linux platform epoll package, complete socket event callback function
Platform: |
Size: 56320 |
Author: etssc |
Hits:
Description: socket的事件分发模型,使用了统一接口封装select,poll,epoll等模型。-socket events distributed model, the use of a unified interface package select, poll, epoll and other models.
Platform: |
Size: 32768 |
Author: zbc |
Hits:
Description: Linux Epoll用法实例(Socket编程)-Linux Epoll usage examples (Socket Programming)
Platform: |
Size: 1024 |
Author: notshy |
Hits:
Description: linux下的Tcp服务器,采用的是Epoll模式,deamon程序,适合大家学习网络编程。-Tcp server under linux, using the Epoll mode, deamon process, suitable for them to learn network programming.
Platform: |
Size: 252928 |
Author: yourname |
Hits:
Description: 编译 g++ -Wl,-Bdynamic -lgcc_s -o Socket socket.cpp
epoll 开发的的类QQ服务端程序,给大家参考-Compile g++-Wl,-Bdynamic-lgcc_s-o Socket socket.cpp epoll the development of the class QQ server program, for your reference
Platform: |
Size: 3072 |
Author: wuzhaoguo |
Hits:
Description: linux网络编程的一些技巧,包括socket,thread pool, select,epoll等-linux network programming some of the techniques, including socket select, epoll, etc.
Platform: |
Size: 4096 |
Author: sy |
Hits:
Description: 利用EPOLL写的一个简单的connect非阻塞模型-Written by EPOLL connect a simple non-blocking model
Platform: |
Size: 2048 |
Author: freebuf |
Hits:
Description: linux下epoll模式的socket,可支持多用户同时向服务器发送请求。-mode under linux epoll socket, can support multiple users simultaneously send requests to the server.
Platform: |
Size: 57344 |
Author: 王文星 |
Hits:
Description: epoll socket连接简单实例。简单描述epoll方式的socket连接。-epoll socket to connect a simple example. A brief description of the way epoll socket connection.
Platform: |
Size: 2048 |
Author: zhang |
Hits:
Description: linux c 网络编程,socket实现epollc服务器-linux c network program about socket,use epoll
Platform: |
Size: 1024 |
Author: 孟士淇 |
Hits:
Description: socket for tcp udp , with c code
Platform: |
Size: 6144 |
Author: yun |
Hits:
Description: 代码编写了在unix socket编程的典型几种模式,包括迭代,epoll,select,多线程,多进程等模式,是学习的好资料-The Unix socket programming code is written several models, including the iterative model, epoll mode, select mode, multithreading, process model, ,so it is the study nice material
Platform: |
Size: 1479680 |
Author: 焦梁 |
Hits:
Description: linux下c++的socket编程,深入浅出的从socket套接字到epoll服务器编程讲述-programming of the linux under c++ socket, easy socket from the socket to epoll server programming tells
Platform: |
Size: 375808 |
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: epoll socket 的使用,包括客户端和服务端编码(Programming to achieve the epoll socket, including the client and server-side coding)
Platform: |
Size: 52224 |
Author: wellie
|
Hits:
Description: 简单的socket实现,通过epoll实现简单的客户端和服务端代码(simply socket example)
Platform: |
Size: 1024 |
Author: 电击方块
|
Hits:
Description: epoll高性能服务框架,服务端+客户端(Epoll high performance service framework, server + client)
Platform: |
Size: 5120 |
Author: sefsaa
|
Hits: