X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fclient.h;h=f5346bf8b68d858d220fcdb2bd539fd7db22327b;hb=c761d2904822224ec177198af65d546cd845c4b5;hp=f403945c8a4daf87729d5345188e7fac333e933e;hpb=c289fc55d1fce7f474127933063ba2008a188259;p=umurmur.git diff --git a/src/client.h b/src/client.h index f403945..f5346bf 100644 --- a/src/client.h +++ b/src/client.h @@ -59,6 +59,8 @@ #define IS_AUTH(_a_) ((_a_)->authenticated) +struct channel; + typedef struct { int tcpfd; SSL_handle_t *ssl; @@ -66,10 +68,8 @@ typedef struct { bool_t shutdown_wait; cryptState_t cryptState; bool_t readBlockedOnWrite, writeBlockedOnRead; - struct sockaddr_storage remote_tcp; struct sockaddr_storage remote_udp; - char addressString[INET6_ADDRSTRLEN]; uint8_t rxbuf[BUFSIZE], txbuf[BUFSIZE]; uint32_t rxcount, msgsize, drainleft, txcount, txsize; int sessionId; @@ -85,7 +85,7 @@ typedef struct { struct dlist node; struct dlist txMsgQueue; int txQueueCount; - void *channel; /* Ugly... */ + struct channel *channel; char *context; struct dlist chan_node; struct dlist voicetargets; @@ -129,5 +129,8 @@ void Client_codec_add(client_t *client, int codec); void Client_codec_free(client_t *client); codec_t *Client_codec_iterate(client_t *client, codec_t **codec_itr); void Client_textmessage(client_t *client, char *text); +bool_t Client_token_match(client_t *client, char const *str); +void Client_token_free(client_t *client); +void Client_token_add(client_t *client, char *token_string); #endif