diff options
author | Linus Nordberg <linus@nordberg.se> | 2013-01-24 11:23:43 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2013-01-24 11:23:43 +0100 |
commit | 52acaa7cea2bb152c47208d93331fdc39f4a5566 (patch) | |
tree | 1067d142a9228f4d06dd8177c9cb15b5a81d0579 /lib/conn.c | |
parent | fc22159b81c6f9c0649e03ac5be4ccbb7f6520cc (diff) |
user dispatch WIP 0
Diffstat (limited to 'lib/conn.c')
-rw-r--r-- | lib/conn.c | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -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); |