Upgrade Socket pour multi-in

This commit is contained in:
2021-12-16 00:11:41 +01:00
parent 9e418f9193
commit 2b8f34f7af
3 changed files with 13 additions and 10 deletions

View File

@@ -27,8 +27,8 @@ private:
sockaddr_in server, new_sockaddr;
bool will_close = false;
char msg[1024];
const char* motd;
char msg[1025], motd[1025];
int rcv_bytes;
unsigned int sin_size = sizeof(struct sockaddr*);