From 5c60297a1eaab7b10d6f584ba329493a41b812d0 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Sun, 6 Mar 2011 15:53:58 +0100 Subject: Restructure code, moving most code out of packet.c Also, move copyright notice out of COPYING and into every file. --- lib/tcp.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 lib/tcp.h (limited to 'lib/tcp.h') diff --git a/lib/tcp.h b/lib/tcp.h new file mode 100644 index 0000000..eae3e7b --- /dev/null +++ b/lib/tcp.h @@ -0,0 +1,6 @@ +/* Copyright 2011 NORDUnet A/S. All rights reserved. + See the file COPYING for licensing information. */ + +void tcp_event_cb (struct bufferevent *bev, short events, void *user_data); +void tcp_read_cb (struct bufferevent *bev, void *user_data); +void tcp_write_cb (struct bufferevent *bev, void *ctx); -- cgit v1.1 From f082f0d0617d12854a5fd0dc683d357144e36c5c Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Sun, 6 Mar 2011 17:08:41 +0100 Subject: Move event_set_timeout --> tcp_set_connect_timeout. --- lib/tcp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/tcp.h') diff --git a/lib/tcp.h b/lib/tcp.h index eae3e7b..8f519bb 100644 --- a/lib/tcp.h +++ b/lib/tcp.h @@ -4,3 +4,4 @@ void tcp_event_cb (struct bufferevent *bev, short events, void *user_data); void tcp_read_cb (struct bufferevent *bev, void *user_data); void tcp_write_cb (struct bufferevent *bev, void *ctx); +int tcp_set_connect_timeout (struct rs_connection *conn); -- cgit v1.1 From ce4d6dfe1728e5633a8f49fc4b16c36df0d23521 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Wed, 9 Mar 2011 10:18:06 +0100 Subject: Add retransmission timer support (UDP). --- lib/tcp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tcp.h') diff --git a/lib/tcp.h b/lib/tcp.h index 8f519bb..fc2c4df 100644 --- a/lib/tcp.h +++ b/lib/tcp.h @@ -4,4 +4,4 @@ void tcp_event_cb (struct bufferevent *bev, short events, void *user_data); void tcp_read_cb (struct bufferevent *bev, void *user_data); void tcp_write_cb (struct bufferevent *bev, void *ctx); -int tcp_set_connect_timeout (struct rs_connection *conn); +int tcp_init_connect_timer (struct rs_connection *conn); -- cgit v1.1