Linux serverlinux web serverNETWORK ADMINISTRATIONS

C++ Programming on Linux – Libevent (evhttp) HTTP Server Example

In this short video it will continue discuss libevent, Fast portable non-blocking network programming library.
Libevent-evhttp provides a very simple event-driven HTTP interface that can be embedded in your program for making HTTP requests
and for creating a very simple HTTP server.
The example of this video is using libevent evhttp provided http functions to build an simple HTTP server and a client
making HTTP request.

Example code of this video has been uploaded on GitHub for your reference :
https://github.com/yuanhui360/CPP-Programming-on-Linux/tree/main/YH-140

source

by Hui Yuan

linux web server

One thought on “C++ Programming on Linux – Libevent (evhttp) HTTP Server Example

  • Great example of libevent ! Thank you. The API feels more C-like than C++. For any real world application, you would use Boost.Asio which offers non blocking sockets, I guess.

Comments are closed.