X-Git-Url: http://git.pk910.de/?p=TransparentIRC.git;a=blobdiff_plain;f=src%2FIOHandler.h;fp=src%2FIOHandler.h;h=3e9e7053981ed8d045cfb459926c285a383bce73;hp=8bc2a37426913a924e1f56f52f4520b6843c88db;hb=8889b0aee1dc430e735e2a0df462fd0aeee63847;hpb=4fdc419424dd18df5807ed4218a84fa38e1dd6f6 diff --git a/src/IOHandler.h b/src/IOHandler.h index 8bc2a37..3e9e705 100644 --- a/src/IOHandler.h +++ b/src/IOHandler.h @@ -66,6 +66,7 @@ struct IODescriptor { struct IOBuffer writebuf; void *data; int read_lines : 1; + int ssl : 1; struct IODescriptor *next, *prev; }; @@ -83,8 +84,8 @@ struct IOEvent { struct IODescriptor *iohandler_add(int sockfd, enum IOType type, iohandler_callback *callback); struct IODescriptor *iohandler_file(FILE *file, iohandler_callback *callback); struct IODescriptor *iohandler_timer(struct timeval timeout, iohandler_callback *callback); -struct IODescriptor *iohandler_connect(const char *hostname, unsigned int port, const char *bind, iohandler_callback *callback); -struct IODescriptor *iohandler_listen(const char *hostname, unsigned int port, iohandler_callback *callback); +struct IODescriptor *iohandler_connect(const char *hostname, unsigned int port, int ssl, const char *bind, iohandler_callback *callback); +struct IODescriptor *iohandler_listen(const char *hostname, unsigned int port, int ssl, iohandler_callback *callback); void iohandler_write(struct IODescriptor *iofd, const char *line); void iohandler_send(struct IODescriptor *iofd, const char *data, size_t datalen); void iohandler_printf(struct IODescriptor *iofd, const char *text, ...);