Skip to content

An introduction to libuvpp

InstantWebP2P edited this page Oct 28, 2012 · 2 revisions

libuvpp intends to develop and porting P2P transport to libuv, then bring P2P network service easily by power of libuv’s async mechanism, timers, thread pool and platform-independence.

the first porting is UDT(UDP-based transport by Yunhong Gu) - http://udt.sourceforge.net/

the next things is about PGM.

To use UDT with libuv, just replace litera tcp with udt, when you coding, like uv_tcp_t to uv_udt_t.

Ping-Pong test samples: test/echo-server-udt.c, test/echo-client-udt.c. After build libuvpp, there are two executables:

Start ping-pong server: test/echo-server-udt 9000
Start ping-pong client: test/echo-client-udt 9000
Clone this wiki locally