added cmd_setbot for dynamic bot management
[NeonServV5.git] / src / ClientSocket.h
index 1ef009c148471a8d3395c98a52a3c163ee962a78..7ede0c325e79b46e9c3302ef50887c7d14f96a37 100644 (file)
@@ -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
 
@@ -40,6 +41,7 @@ struct ClientSocket {
     unsigned int bufferpos;
     char *host;
     int port;
+    char *bind;
     char *pass;
     char *nick;
     char *ident;
@@ -64,7 +66,7 @@ struct ClientSocket {
     struct ClientSocket *next;
 };
 
-struct ClientSocket* create_socket(char *host, int port, char *pass, char *nick, char *ident, char *realname);
+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 write_socket_force(struct ClientSocket *client, char* msg, int len);