projects
/
umurmur.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for channel passwords.
[umurmur.git]
/
src
/
client.h
diff --git
a/src/client.h
b/src/client.h
index 608c87c036f81d453f133ace43342af1ef3c3c0f..0e5e1353300fdb2e1fdd3e48fab9151f7b536b0c 100644
(file)
--- a/
src/client.h
+++ b/
src/client.h
@@
-53,6
+53,8
@@
#define UDP_BUFSIZE 512
#define INACTICITY_TIMEOUT 15 /* Seconds */
#define MAX_CODECS 10
#define UDP_BUFSIZE 512
#define INACTICITY_TIMEOUT 15 /* Seconds */
#define MAX_CODECS 10
+#define MAX_TOKENSIZE 64
+#define MAX_TOKENS 32
#define IS_AUTH(_a_) ((_a_)->authenticated)
#define IS_AUTH(_a_) ((_a_)->authenticated)
@@
-85,6
+87,8
@@
typedef struct {
char *context;
struct dlist chan_node;
struct dlist voicetargets;
char *context;
struct dlist chan_node;
struct dlist voicetargets;
+ struct dlist tokens;
+ int tokencount;
float UDPPingAvg, UDPPingVar, TCPPingAvg, TCPPingVar;
uint32_t UDPPackets, TCPPackets;
} client_t;
float UDPPingAvg, UDPPingVar, TCPPingAvg, TCPPingVar;
uint32_t UDPPackets, TCPPackets;
} client_t;
@@
-94,6
+98,11
@@
typedef struct {
struct dlist node;
} codec_t;
struct dlist node;
} codec_t;
+typedef struct {
+ char *token;
+ struct dlist node;
+} token_t;
+
void Client_init();
int Client_getfds(struct pollfd *pollfds);
void Client_janitor();
void Client_init();
int Client_getfds(struct pollfd *pollfds);
void Client_janitor();