diff options
| author | Reiner Herrmann <reiner@reiner-h.de> | 2011-01-15 19:10:22 +0100 |
|---|---|---|
| committer | Reiner Herrmann <reiner@reiner-h.de> | 2011-01-15 19:10:22 +0100 |
| commit | f85db5843635d9e6479220f7dfd34bf719f15994 (patch) | |
| tree | 2ff21a0018d59010844d41d64621109841d4e9d1 /src/net_server.c | |
| parent | 8d1391507cbb943ecf17a8e4097f524da2505e32 (diff) | |
added some documentation
Diffstat (limited to 'src/net_server.c')
| -rw-r--r-- | src/net_server.c | 11 |
1 files changed, 11 insertions, 0 deletions
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]; |
