X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fevent_client.h;h=208a716616a7122ca8340490d2fa2511ffcc9d15;hb=7cf6e5035af5106d7c9466e9e64e6b9439b841d3;hp=c5761ffae482c27ceee0cc73e04f09f329b1b981;hpb=ddb2f5803b76a4a6120df8e845bcf165b3726f86;p=citadel.git diff --git a/citadel/event_client.h b/citadel/event_client.h index c5761ffae..208a71661 100644 --- a/citadel/event_client.h +++ b/citadel/event_client.h @@ -37,9 +37,10 @@ struct AsyncIO { eNextState NextState; ev_timer conn_fail, - conn_timeout; + rw_timeout; ev_io recv_event, - send_event; + send_event, + conn_event; StrBuf *ErrMsg; /* if we fail to connect, or lookup, error goes here. */ /* read/send related... */ @@ -93,11 +94,11 @@ void InitEventIO(AsyncIO *IO, IO_CallBack Timeout, IO_CallBack ConnFail, IO_LineReaderCallback LineReader, - int conn_timeout, int first_rw_timeout, + double conn_timeout, double first_rw_timeout, int ReadFirst); int QueueQuery(ns_type Type, char *name, AsyncIO *IO, IO_CallBack PostDNS); void StopClient(AsyncIO *IO); -void SetNextTimeout(AsyncIO *IO, int timeout); +void SetNextTimeout(AsyncIO *IO, double timeout);