diff --git a/src/client/main.cc b/src/client/main.cc index 6cb56da..9ef0cb8 100644 --- a/src/client/main.cc +++ b/src/client/main.cc @@ -25,6 +25,15 @@ int main() { serverAdress.sin_port = htons(8080); serverAdress.sin_addr.s_addr = inet_addr("127.0.0.50"); + int connectStatus = connect(clientSocket, (struct sockaddr *)&serverAdress, + sizeof(serverAdress)); + if (connectStatus != 0) { + cout << "Failed to connect"; + return connectStatus; + } else { + cout << "CONNECTED!" << endl; + } + while (true) { Message message; cout << "Type message to server: ";