split network code into extra file

This commit is contained in:
2024-01-21 12:47:01 +01:00
parent d82cf253bd
commit 0104e542e1
5 changed files with 95 additions and 63 deletions

9
network.h Normal file
View File

@@ -0,0 +1,9 @@
#define SERVER "::1"
#define PORT 49000
#define COMMAND_BUFFER 256
char* printable(char *str);
int sendCommand(int sock, char *cmd);
int connectXPlane(char *addr, int port);
int disconnectXPlane(int sock);