X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fclient.h;h=0e5e1353300fdb2e1fdd3e48fab9151f7b536b0c;hb=977a33f0978bec21b3c12a8c04a40bf56afe7334;hp=608c87c036f81d453f133ace43342af1ef3c3c0f;hpb=00d6addea82c3c75ac784f9c7877ef61a382492b;p=umurmur.git diff --git a/src/client.h b/src/client.h index 608c87c..0e5e135 100644 --- 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 MAX_TOKENSIZE 64 +#define MAX_TOKENS 32 #define IS_AUTH(_a_) ((_a_)->authenticated) @@ -85,6 +87,8 @@ typedef struct { 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; @@ -94,6 +98,11 @@ typedef struct { 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();