added missing addr to client

This commit is contained in:
Václav Šmejkal 2023-02-20 19:02:50 +01:00
parent 97337f06db
commit 5b855d21bd
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -30,6 +30,7 @@ int main(void)
struct sockaddr_in server_addr;
server_addr.sin_family = AF_INET;
server_addr.sin_port = htons(SERVER_PORT);
server_addr.sin_addr.s_addr = INADDR_ANY;
int connectStatus = connect(listen_socket, (SA *) &server_addr, sizeof(server_addr)); //CONNECT