From 727af5678906c03eedff8d8262d39fad788973a6 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Wed, 29 Sep 2010 21:53:43 +0200 Subject: Refactoring in preparation for handling more cases than client sending one packet. --- lib/libradsec-impl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libradsec-impl.h') diff --git a/lib/libradsec-impl.h b/lib/libradsec-impl.h index e51c54c..a4ce7c2 100644 --- a/lib/libradsec-impl.h +++ b/lib/libradsec-impl.h @@ -71,6 +71,8 @@ struct rs_peer { struct rs_connection *conn; struct evutil_addrinfo *addr; int s; /* Socket. */ + char is_connecting; + char is_connected; char *secret; int timeout; /* client only */ int tries; /* client only */ @@ -80,6 +82,7 @@ struct rs_peer { struct rs_connection { struct rs_handle *ctx; struct event_base *evb; + struct bufferevent *bev; enum rs_conn_type type; struct rs_credentials transport_credentials; struct rs_conn_callbacks callbacks; @@ -98,9 +101,6 @@ struct rs_attr { VALUE_PAIR *vp; }; -/* Internal functions. */ -int rs_conn_open(struct rs_connection *conn); - /* Convenience macros. */ #define rs_calloc(h, nmemb, size) \ (h->alloc_scheme.calloc ? h->alloc_scheme.calloc : calloc)(nmemb, size) -- cgit v1.1