X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fclient.h;h=0e5e1353300fdb2e1fdd3e48fab9151f7b536b0c;hb=76f6cc6fd2eecb29f265226e43408a0d9ad41174;hp=a74a2068580d74b7ad04f39591c3e9e53fec860a;hpb=082533e47427c10c255a12a962b8d8ea7ef0bdc0;p=umurmur.git diff --git a/src/client.h b/src/client.h index a74a206..0e5e135 100644 --- a/src/client.h +++ b/src/client.h @@ -1,5 +1,5 @@ -/* Copyright (C) 2009-2010, Martin Johansson - Copyright (C) 2005-2010, Thorvald Natvig +/* Copyright (C) 2009-2011, Martin Johansson + Copyright (C) 2005-2011, Thorvald Natvig All rights reserved. @@ -31,6 +31,7 @@ #ifndef CLIENT_H_45786678 #define CLIENT_H_45786678 +#include #include #include /* close() */ #include @@ -52,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) @@ -84,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; @@ -93,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();