typedef enum _eNextState {
eSendDNSQuery,
eReadDNSReply,
+
eDBQuery,
+
eConnect,
eSendReply,
eSendMore,
+ eSendFile,
+
eReadMessage,
eReadMore,
eReadPayload,
+ eReadFile,
+
eTerminateConnection,
eAbort
}eNextState;
IOBuffer SendBuf,
RecvBuf;
+ FDIOBuffer IOB; /* when sending from / reading into files, this is used. */
+
/* our events... */
ev_cleanup abort_by_shutdown, /* server wants to go down... */
db_abort_by_shutdown; /* server wants to go down... */
Terminate, /* shutting down... */
Timeout, /* Timeout handler; may also be connection timeout */
ConnFail, /* What to do when one connection failed? */
+ DNSFail, /* the dns lookup didn't work out. */
ShutdownAbort,/* we're going down. make your piece. */
NextDBOperation; /* Perform Database IO */