summaryrefslogtreecommitdiff
path: root/lib/conn.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2013-01-24 11:23:43 +0100
committerLinus Nordberg <linus@nordberg.se>2013-01-24 11:23:43 +0100
commit52acaa7cea2bb152c47208d93331fdc39f4a5566 (patch)
tree1067d142a9228f4d06dd8177c9cb15b5a81d0579 /lib/conn.c
parentfc22159b81c6f9c0649e03ac5be4ccbb7f6520cc (diff)
user dispatch WIP 0
Diffstat (limited to 'lib/conn.c')
-rw-r--r--lib/conn.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/conn.c b/lib/conn.c
index 09a1ac0..17f893d 100644
--- a/lib/conn.c
+++ b/lib/conn.c
@@ -193,7 +193,23 @@ rs_conn_get_current_peer (struct rs_connection *conn,
return rs_err_conn_push_fl (conn, RSE_NOSYS, __FILE__, __LINE__, NULL);
}
-int rs_conn_fd (struct rs_connection *conn)
+int
+rs_conn_dispatch(struct rs_connection *conn)
+{
+ assert (conn);
+ return event_base_loop (conn->evb, EVLOOP_ONCE);
+}
+
+#if 0
+struct event_base
+*rs_conn_get_evb(const struct rs_connection *conn)
+{
+ assert (conn);
+ return conn->evb;
+}
+#endif
+
+int rs_conn_get_fd (struct rs_connection *conn)
{
assert (conn);
assert (conn->active_peer);