Get UDP working.
authorLinus Nordberg <linus@nordu.net>
Wed, 9 Mar 2011 22:09:26 +0000 (23:09 +0100)
committerLinus Nordberg <linus@nordu.net>
Wed, 9 Mar 2011 22:09:26 +0000 (23:09 +0100)
commit0a7d803b9aa40512cf0f0c574d397ccba3ff1d13
treec0f375e500c48e0b9aa983e02e8931a42dcd4d2c
parent11cf984f611e835c394deede450af9fd69434e30
Get UDP working.

For UDP, activate retransmit timer before receiving rather than
sending makes the event loop break nicely after sending a message
(which is important for blocking mode).  Not quite sure that this is
really accurate wrt to retransmission timing though but it should do
for now.

For UDP, set the user_data member for the read callback in
rs_conn_receive_packet -- the one from udp_init() doesn't do much good
now.

For UDP, implement receiving message.

Add compat_recv().
lib/compat.c
lib/compat.h
lib/conn.c
lib/packet.c
lib/udp.c