bind returns zero on success (#149)
This commit is contained in:
		
				
					committed by
					
						 Benjamin Sergeant
						Benjamin Sergeant
					
				
			
			
				
	
			
			
			
						parent
						
							f3d562ff02
						
					
				
				
					commit
					86c2ab450e
				
			| @@ -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 " | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user