X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fclient.h;h=e7373bdfe148a2aca7ca136242c6dcb2ddeb3e50;hb=a110f98be8239cb11b578cdec47580ef98bb545b;hp=66470de3fb2177f4dea9558b79e36e20b1003d25;hpb=b331021d492fd5febb576a61717a489c5cc875ff;p=umurmur.git diff --git a/src/client.h b/src/client.h index 66470de..e7373bd 100644 --- a/src/client.h +++ b/src/client.h @@ -66,10 +66,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; @@ -121,7 +119,7 @@ int Client_count(void); void Client_close(client_t *client); client_t *Client_iterate(client_t **client); int Client_send_message_except(client_t *client, message_t *msg); -int Client_read_udp(void); +int Client_read_udp(int udpsock); void Client_disconnect_all(); int Client_voiceMsg(client_t *client, uint8_t *data, int len); void recheckCodecVersions(client_t *connectingClient); @@ -129,5 +127,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