X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2FIOHandler.h;h=003f9b0608ff2ba5b3f642ce47b349616f612d58;hp=72e270502d3b48ea9a2d2103dc7138e872bb7ff7;hb=6b235c4b3e0ff537bff312c5f18104e657b02883;hpb=57b28c464a3cd3eee7d91ddf9d9fc83fae1c58f6 diff --git a/src/IOHandler.h b/src/IOHandler.h index 72e2705..003f9b0 100644 --- a/src/IOHandler.h +++ b/src/IOHandler.h @@ -114,6 +114,10 @@ struct IOEvent { #define IOHANDLER_CONNECT_IPV4 0x01 #define IOHANDLER_CONNECT_IPV6 0x02 /* overrides IOHANDLER_CONNECT_IPV4 */ +#define IOHANDLER_SETTING_HIGH_PRECISION_TIMER 0x01 + +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_connect(const char *hostname, unsigned int port, int ssl, const char *bind, iohandler_callback *callback);