From 8455dc9801730e599510c92cdb3e05da351aa7a5 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Fri, 3 Sep 2010 00:58:55 +0200 Subject: Low level connect and read working, kind of. At least TCP. Next: serializing. --- lib/libradsec-levent.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib/libradsec-levent.h') diff --git a/lib/libradsec-levent.h b/lib/libradsec-levent.h index 17e089a..f79816c 100644 --- a/lib/libradsec-levent.h +++ b/lib/libradsec-levent.h @@ -1,10 +1,17 @@ -/** @file libradsec-libevent.h +/** @file libradsec-levent.h @brief API for libradsec-libevent. */ /* FIXME: License blurb goes here. */ +#include #include "libradsec.h" +struct rs_connection { + struct rs_config *conf; + struct sockaddr_storage addr; + char open_flag; +}; + typedef void (*rs_conn_connected_cb)(void *user_data /* FIXME: peer? */); typedef void (*rs_conn_disconnected_cb)(void *user_data /* FIXME: reason? */); typedef void (*rs_conn_packet_received_cb)(const struct rs_packet *packet, -- cgit v1.1