projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added experimental multi thread support
[NeonServV5.git]
/
src
/
ClientSocket.h
diff --git
a/src/ClientSocket.h
b/src/ClientSocket.h
index 9bcdaffccd3aa2b0c1117e5fd4b1df588682ecc0..4073a23b38570778980337c5c1e575d0b6466bc9 100644
(file)
--- a/
src/ClientSocket.h
+++ b/
src/ClientSocket.h
@@
-1,5
+1,5
@@
/* ClientSocket.h - NeonServ v5.3
/* ClientSocket.h - NeonServ v5.3
- * Copyright (C) 2011 Philipp Kreil (pk910)
+ * 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
*
* 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
@@
-27,6
+27,13
@@
#define SOCKET_FLAG_RECONNECT 0x20
#define SOCKET_FLAG_SSL 0x40
#define SOCKET_FLAG_HAVE_SSL 0x80
#define SOCKET_FLAG_RECONNECT 0x20
#define SOCKET_FLAG_SSL 0x40
#define SOCKET_FLAG_HAVE_SSL 0x80
+#define SOCKET_FLAG_QUITTED 0x100
+#define SOCKET_FLAG_FAST_JUMP 0x200
+#define SOCKET_FLAG_SILENT 0x400
+
+#define SOCKET_HAVE_BOTCLASSVALUE1 0x10000000
+#define SOCKET_HAVE_BOTCLASSVALUE2 0x20000000
+#define SOCKET_HAVE_BOTCLASSVALUE3 0x40000000
#define BUF_SIZ 512
#define BUF_SIZ 512
@@
-36,7
+43,7
@@
struct SSLConnection;
struct ClientSocket {
int sock;
struct ClientSocket {
int sock;
- unsigned
char
flags;
+ unsigned
int
flags;
char buffer[BUF_SIZ*2]; //we need to store up to 2 full commands at once
unsigned int bufferpos;
char *host;
char buffer[BUF_SIZ*2]; //we need to store up to 2 full commands at once
unsigned int bufferpos;
char *host;
@@
-63,6
+70,10
@@
struct ClientSocket {
int botid : 16;
int clientid : 16;
int botid : 16;
int clientid : 16;
+ void *botclassvalue1;
+ void *botclassvalue2;
+ void *botclassvalue3;
+
struct ClientSocket *next;
};
struct ClientSocket *next;
};
@@
-75,6
+86,7
@@
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);
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);
+void init_sockets();
void free_sockets();
#endif
\ No newline at end of file
void free_sockets();
#endif
\ No newline at end of file