75 return EXIT_FAILURE; |
75 return EXIT_FAILURE; |
76 } |
76 } |
77 |
77 |
78 int fd = server.client->fd; |
78 int fd = server.client->fd; |
79 net_send_data(fd, NETCODE_GAMEINFO, |
79 net_send_data(fd, NETCODE_GAMEINFO, |
80 &(settings->gameinfo), sizeof(Gameinfo)); |
80 &(settings->gameinfo), sizeof(GameInfo)); |
81 printw("\rClient connected - awaiting challenge acceptance..."); |
81 printw("\rClient connected - awaiting challenge acceptance..."); |
82 refresh(); |
82 refresh(); |
83 int code = net_recieve_code(fd); |
83 int code = net_recieve_code(fd); |
84 if (code == NETCODE_ACCEPT) { |
84 if (code == NETCODE_ACCEPT) { |
85 printw("\rClient connected - challenge accepted."); |
85 printw("\rClient connected - challenge accepted."); |