diff options
| author | r4tss <[email protected]> | 2021-03-09 13:11:55 +0100 |
|---|---|---|
| committer | r4tss <[email protected]> | 2021-03-09 13:11:55 +0100 |
| commit | 2db3a6474692b2704773c29a620429665428fa2d (patch) | |
| tree | 4d30f0a91fbdcbfa1b3eea318756c14aedeba3a6 | |
| parent | 5e2259b66995c5169d302e360b4e07b3bf2620a0 (diff) | |
Saving changes for later
| -rw-r--r-- | nships.c | 5 | ||||
| -rw-r--r-- | server.c | 4 |
2 files changed, 5 insertions, 4 deletions
@@ -2,6 +2,8 @@ #include <stdlib.h> #include <time.h> +#include "server.c" + #define height 80 #define width 200 @@ -71,5 +73,6 @@ int menu(int y, int x, int h, int w, int aLen, char it[][15]) int main() { - + if(fork()) + hostGame(); } @@ -4,7 +4,7 @@ #define PORT 8888 -int main() +void hostGame() { int sfd, err = 0; struct sockaddr_in addr; @@ -30,6 +30,4 @@ int main() printf("Failed to listen"); else printf("Listening...\n"); - - return 0; } |
