Use libevent and libev to improve network application performance
Use libevent and libev to improve network application performance
Manage multiple UNIX Network ConnectionsMartin C. Brown, writer, FreelanceMartin Brown has been a professional
can web games use PHP for back-end development? Of course. The best way to go http, you can do network programming, and write code is very simple, 1 functions can be built on a server side. Stream_socket_server ()Multithreading is not a good idea,
There are many solutions, but the Libevent library and the Libev library can greatly improve performance and event handling capabilities. In this article, we discuss the basic structures and methods used to use and deploy these solutions in UNIX®
Libevent is an event-driven, high-performance network library. Supports multiple I/O multiplexing Technologies, Epoll, poll, Dev/poll, select, and Kqueue, support for events such as I/O, timers and Signals, and register event priorities.PHP libevent
Libevent is a high-performance network library based on event-driven. Supports multiple I/O multiplexing Technologies, Epoll, poll, Dev/poll, select, and Kqueue, support I/O, Timer and signal events, and register event priorities.PHP Libevent
Originally wanted to try PHP to write High-performance network services, the need to install Libevent expansion, did not expect to make a lot of headDownload Libevent Extensions First:Http://pecl.php.net/package/libeventAfter decompression, start
1. Download Extension official address HTTP://pecl.php.net/package/libevent Please select the appropriate version according to your PHP scriptSuch aswget http://pecl.php.net/get/libevent-0.0.4.tgz2.Download wget http://pecl.php.net/get/libevent-0.
Original address:
http://blog.csdn.net/eroswang/article/details/4206284
Recently because of work reasons, the pressure of the background server is getting bigger and larger, need to rebuild the server in the background of the project,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.