From f85db5843635d9e6479220f7dfd34bf719f15994 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Sat, 15 Jan 2011 19:10:22 +0100 Subject: added some documentation --- src/net_server.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/net_server.c') diff --git a/src/net_server.c b/src/net_server.c index 716cc48..edd572b 100644 --- a/src/net_server.c +++ b/src/net_server.c @@ -111,6 +111,12 @@ int* server_get_players(int serversock, const uint8_t count) return clientsocks; } +/** + * Server side function; notifies players of game start and send list of all players + * @param[in] clients List of sockets with connection to clients + * @param[in] clientcount Number of clients + * @param[in] players List of all players (including self) to send + */ void server_start_game(int* clients, const uint8_t clientcount, const struct player_list* players) { uint8_t* buf; @@ -203,6 +209,11 @@ void* server_recv(int sock, uint8_t wanted) return result; } +/** + * Server side function; deal cards to a client (send hand) + * @param[in] sock Socket to use + * @param[in] h Hand to send + */ void server_deal_cards(int sock, const hand h) { uint8_t buf[2+MAX_HAND_CARDS]; -- cgit v1.2.3