bind returns zero on success (#149)
This commit is contained in:
parent
aa12098cb5
commit
7ed8ac208a
@ -96,7 +96,7 @@ namespace ix
|
|||||||
return std::make_pair(false, ss.str());
|
return std::make_pair(false, ss.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bind(_serverFd, (struct sockaddr*) &server, sizeof(server)) <= 0)
|
if (bind(_serverFd, (struct sockaddr*) &server, sizeof(server)) < 0)
|
||||||
{
|
{
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << "SocketServer::listen() error calling bind "
|
ss << "SocketServer::listen() error calling bind "
|
||||||
|
Loading…
Reference in New Issue
Block a user