Junch / network

asio examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

network

学习asio的最多、最全、最有用、最容易学会的例子,功能与asio的examples不重叠。

git clone --recursive https://github.com/franktea/network.git;
cd network;
mkdir -p build;
cmake ..;
make

projects

Httpclient is a simple httpclient

httpclient-https is a simple httpclient, with https supported

socks5-daemon is a simple socks5 server implemention

fixed-size-package shows how to send and receive packets of a fixed-length header. Endianness is not considered in the code.

redis-asio is a simple redis client implemention.

io_context example of io_context, shows how to use run/poll/dispatch/post

simplest_httpsvr is trying to make a simplest http svr

custom_errorcode shows how to make custom error_code in asio

custom_timer_manager shows how to make a custom timer manager for asio

protobuf_rpc shows how to implement a simple rpc framework of protobuf 2.x

echo_client async echo client, which is not included in asio examples

asio_libcurl demonstrate how to integrate asio with libcurl, the old example is kinda too old, and has some bugs.

About

asio examples


Languages

Language:C++ 95.4%Language:CMake 3.8%Language:Makefile 0.5%Language:C 0.4%