summaryrefslogtreecommitdiff
path: root/src/net/comm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/comm.c')
-rw-r--r--src/net/comm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/comm.c b/src/net/comm.c
index 000c96f..0c7d8e9 100644
--- a/src/net/comm.c
+++ b/src/net/comm.c
@@ -56,6 +56,9 @@ bool net_recv(const int sock, const msg_type_t type)
case msg_type_selected_stack_s:
result = client_parse_selected_stack(&m);
break;
+ case msg_type_next_action:
+ result = client_parse_next_action(&m);
+ break;
default:
printf("net_recv: Unknown message type %d received!\n", type);
exit(EXIT_FAILURE);
@@ -103,6 +106,9 @@ bool net_send(const int sock, const msg_type_t type, const void *data)
case msg_type_selected_card_all:
server_prep_selected_card_all(&m);
break;
+ case msg_type_next_action:
+ server_prep_next_action(&m);
+ break;
default:
printf("net_send: Unknown message type %d given\n", type);
exit(EXIT_FAILURE);