[Fix] server error message
This commit is contained in:
parent
c8c16d65c3
commit
f0db4dec3b
@ -96,13 +96,13 @@ int main(int argc, char const *argv[]) {
|
||||
|
||||
// bind
|
||||
if (bind(sockfd, (struct sockaddr *) &server_info, sizeof(server_info)) == -1) {
|
||||
cerr << "Cannot bind server." << endl;
|
||||
cerr << "Cannot bind socker." << endl;
|
||||
return BINDERR_RET;
|
||||
}
|
||||
|
||||
// only one connection at the same time
|
||||
if (listen(sockfd, 1) == -1) {
|
||||
cerr << "Cannot listen socket." << endl;
|
||||
cerr << "Cannot listen to socket." << endl;
|
||||
return LISTENERR_RET;
|
||||
}
|
||||
cout << "Server up. Waiting connection..." << endl;
|
||||
|
Loading…
x
Reference in New Issue
Block a user