Merge remote-tracking branch 'IOMultiplexer.git/master' into development
[NeonServV5.git] / src / IOHandler.h
index 003f9b0608ff2ba5b3f642ce47b349616f612d58..82781d61e0be415f1ad662b0154b8b461316b820 100644 (file)
@@ -16,6 +16,7 @@
  */
 #ifndef _IOHandler_h
 #define _IOHandler_h
+#include "../config.h" /* configure script autogenerated */
 #include <stddef.h>
 #include <sys/time.h> /* struct timeval */
 
@@ -82,6 +83,7 @@ struct IODescriptor {
     enum IOType type;
     enum IOStatus state;
     struct timeval timeout;
+    int constant_timeout;
     iohandler_callback *callback;
     struct IOBuffer readbuf;
     struct IOBuffer writebuf;
@@ -120,6 +122,7 @@ void iohandler_set(int setting, int value);
 
 struct IODescriptor *iohandler_add(int sockfd, enum IOType type, struct timeval *timeout, iohandler_callback *callback);
 struct IODescriptor *iohandler_timer(struct timeval timeout, iohandler_callback *callback);
+struct IODescriptor *iohandler_constant_timer(int msec, iohandler_callback *callback);
 struct IODescriptor *iohandler_connect(const char *hostname, unsigned int port, int ssl, const char *bind, iohandler_callback *callback);
 struct IODescriptor *iohandler_connect_flags(const char *hostname, unsigned int port, int ssl, const char *bindhost, iohandler_callback *callback, int flags);
 struct IODescriptor *iohandler_listen(const char *hostname, unsigned int port, iohandler_callback *callback);