X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2FClientSocket.h;h=a65dfdfb00edefe2c5681b0db8c0fa05d2f7b9ba;hb=406c308308e4d131475a692cd425cb156e0776f1;hp=bafc003390b79238793c52b088dc7b30a5fd2bca;hpb=37a4c120f59e3a65d401d23e9469958e4181fcf4;p=NeonServV5.git diff --git a/src/ClientSocket.h b/src/ClientSocket.h index bafc003..a65dfdf 100644 --- a/src/ClientSocket.h +++ b/src/ClientSocket.h @@ -1,5 +1,5 @@ -/* ClientSocket.h - NeonServ v5.3 - * Copyright (C) 2011 Philipp Kreil (pk910) +/* ClientSocket.h - NeonServ v5.4 + * Copyright (C) 2011-2012 Philipp Kreil (pk910) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,6 +29,12 @@ #define SOCKET_FLAG_HAVE_SSL 0x80 #define SOCKET_FLAG_QUITTED 0x100 #define SOCKET_FLAG_FAST_JUMP 0x200 +#define SOCKET_FLAG_SILENT 0x400 +#define SOCKET_FLAG_CHANGENICK 0x800 + +#define SOCKET_HAVE_BOTCLASSVALUE1 0x10000000 +#define SOCKET_HAVE_BOTCLASSVALUE2 0x20000000 +#define SOCKET_HAVE_BOTCLASSVALUE3 0x40000000 #define BUF_SIZ 512 @@ -49,6 +55,7 @@ struct ClientSocket { char *ident; char *realname; struct UserNode *user; + char *network_name; unsigned long traffic_in; unsigned long traffic_out; time_t connection_time; @@ -65,18 +72,29 @@ struct ClientSocket { int botid : 16; int clientid : 16; + void *botclassvalue1; + void *botclassvalue2; + void *botclassvalue3; + + void *changenick_channels; //parted channels due raw 437 + struct ClientSocket *next; }; -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); +#ifndef DND_FUNCTIONS +/* MODULAR ACCESSIBLE */ struct ClientSocket* create_socket(char *host, int port, char *bindto, char *pass, char *nick, char *ident, char *realname); +/* MODULAR ACCESSIBLE */ int connect_socket(struct ClientSocket *client); +/* MODULAR ACCESSIBLE */ int close_socket(struct ClientSocket *client); +/* MODULAR ACCESSIBLE */ 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); -void putsock(struct ClientSocket *client, const char *text, ...) PRINTF_LIKE(2, 3); -struct ClientSocket* getBots(int flags, struct ClientSocket* last_bot); +/* MODULAR ACCESSIBLE */ int write_socket(struct ClientSocket *client, char* msg, int len); +#ifdef HAVE_THREADS +int clientsocket_parseorder_top(unsigned int tid); +#endif +int socket_loop(int timeout_seconds); +/* MODULAR ACCESSIBLE */ void putsock(struct ClientSocket *client, const char *text, ...) PRINTF_LIKE(2, 3); +/* MODULAR ACCESSIBLE */ struct ClientSocket* getBots(int flags, struct ClientSocket* last_bot); +void init_sockets(); void free_sockets(); - -#endif \ No newline at end of file +#endif +#endif