Hpserver is a lightweight open-source network framework developed for concurrent high-performance network service applications. It uses C ++ as the development language.
Some features of hpserver:
It adopts an event-driven mechanism and uniformly supports I/O events, Timer events, and signal events;
Supports a timer with the precision of Ms;
Built-in support for acceptor and connector components for convenienceProgramDesign;
Multithreading is supported (but not thread-safe );
Cross-platform. Currently, hpserver supports Windows and Linux platforms. The supported system I/O mechanisms include select and epoll;
Generally, the Windows platform supports asynchronous I/O, iocp uses proactor for encapsulation, and Linux epoll is suitable for encapsulation in reactor mode. The cost isCodeAnd increase the difficulty of maintenance.
The goal of hpserver is to use a unified proactor model to support ICOP on Windows and epoll on Linux, to support platform compatibility of application code at the maximum level, this also makes it a reality that hpserver-based network programs maintain a set of code on Windows and Linux platforms.
The first version of hpserver is 0.2.10, which has not yet implemented proactor. In later versions, we will add the proactor implementation.
Welcome to download!
Project home: http://code.google.com/p/hpserver/
At the beginning of the project, the introduction is still simple ~~