forked from joyent/libuv
-
Notifications
You must be signed in to change notification settings - Fork 4
An introduction to libuvpp
InstantWebP2P edited this page Jan 13, 2013
·
4 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