diff options
| author | Mario Kilies <MarioKilies@GMX.net> | 2011-01-24 11:15:56 +0100 |
|---|---|---|
| committer | Mario Kilies <MarioKilies@GMX.net> | 2011-01-24 11:15:56 +0100 |
| commit | 6820c635353b25f12401f8610c140c8608051ded (patch) | |
| tree | ee3e2c284a7bae7e91d58422602259df827a1504 /src/net/client.h | |
| parent | 322ff55a41374e39731aa53dcf6028b09c7c39c9 (diff) | |
Source code refactoring. Moved net/client/server stuff to 'net' subfolder.
Diffstat (limited to 'src/net/client.h')
| -rw-r--r-- | src/net/client.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/net/client.h b/src/net/client.h new file mode 100644 index 0000000..31b3d30 --- /dev/null +++ b/src/net/client.h @@ -0,0 +1,15 @@ +#ifndef OXEN_CLIENT_H +#define OXEN_CLIENT_H + +#include <stdint.h> +#include <stdbool.h> + +int client_connect_server(const char* host, const char* port); +uint8_t client_send_hello(uint8_t* payload, const uint8_t payload_len); +uint8_t client_send_selected_card(uint8_t* payload, const uint8_t payload_len); +uint8_t client_send_selected_stack(uint8_t* payload, const uint8_t payload_len); +bool client_recv_player_list(const uint8_t* payload, const uint8_t data_len); +bool client_recv_deal_cards(const uint8_t* payload, const uint8_t payload_len); +bool client_recv_selected_stack(const uint8_t* payload, const uint8_t payload_len); + +#endif // OXEN_CLIENT_H |
