X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2FClientSocket.h;h=13e499cf0c98268dc6754d36c5af30290318a6e8;hb=6927fcd82e211ff0561ae50e0b9acebedbbe789a;hp=8d7ba76597ca4c2d9547cdb732a70421b606961b;hpb=9d77ca8f63040a3945f634090be990fdeb05c2f3;p=NeonServV5.git diff --git a/src/ClientSocket.h b/src/ClientSocket.h index 8d7ba76..13e499c 100644 --- a/src/ClientSocket.h +++ b/src/ClientSocket.h @@ -26,6 +26,7 @@ #define SOCKET_FLAG_USE_QUEUE 0x10 #define SOCKET_FLAG_RECONNECT 0x20 #define SOCKET_FLAG_SSL 0x40 +#define SOCKET_FLAG_HAVE_SSL 0x80 #define BUF_SIZ 512 @@ -68,6 +69,7 @@ struct ClientSocket { struct ClientSocket* create_socket(char *host, int port, char *bindto, char *pass, char *nick, char *ident, char *realname); int connect_socket(struct ClientSocket *client); int close_socket(struct ClientSocket *client); +int disconnect_socket(struct ClientSocket *client); int write_socket_force(struct ClientSocket *client, char* msg, int len); int write_socket(struct ClientSocket *client, char* msg, int len); void socket_loop(int timeout_seconds);