summaryrefslogtreecommitdiff
path: root/lib/packet.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2011-03-09 23:09:26 +0100
committerLinus Nordberg <linus@nordu.net>2011-03-09 23:09:26 +0100
commit0a7d803b9aa40512cf0f0c574d397ccba3ff1d13 (patch)
treec0f375e500c48e0b9aa983e02e8931a42dcd4d2c /lib/packet.c
parent11cf984f611e835c394deede450af9fd69434e30 (diff)
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().
Diffstat (limited to 'lib/packet.c')
-rw-r--r--lib/packet.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/packet.c b/lib/packet.c
index 7b5ae2d..48fb55e 100644
--- a/lib/packet.c
+++ b/lib/packet.c
@@ -111,8 +111,6 @@ packet_do_send (struct rs_packet *pkt)
while (*pp && (*pp)->next)
*pp = (*pp)->next;
*pp = pkt;
-
- conn_activate_timeout (pkt->conn); /* Retransmission timer. */
}
return RSE_OK;