summaryrefslogtreecommitdiff
path: root/src/net_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/net_client.c')
-rw-r--r--src/net_client.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net_client.c b/src/net_client.c
index 92b699b..531bbd1 100644
--- a/src/net_client.c
+++ b/src/net_client.c
@@ -132,6 +132,12 @@ static hand* client_recv_deal_cards(int sock, uint8_t data_len)
return h;
}
+/**
+ * Client side function; generic function for receiving packets
+ * @param[in] sock Socket on which to receive
+ * @param[in] wanted Desired packet type
+ * @return Pointer to desired data
+ */
void* client_recv(int sock, uint8_t wanted)
{
void* result = NULL;