Fixes for windows (#45)
* init Net system on Windows * propagate DNS error * Add zlib 1.2.11 sources * link zlib statically for windows * remove not implemented function declaration * fix connect on Windows
This commit is contained in:
		
				
					committed by
					
						 Benjamin Sergeant
						Benjamin Sergeant
					
				
			
			
				
	
			
			
			
						parent
						
							561eac816b
						
					
				
				
					commit
					22fcdc0e2e
				
			| @@ -113,7 +113,7 @@ namespace ix | ||||
|         } | ||||
|  | ||||
|         struct sockaddr_in sa; // server address information | ||||
|         socklen_t len; | ||||
|         socklen_t len = sizeof(sa); | ||||
|         if (getsockname(sockfd, (struct sockaddr *) &sa, &len) < 0) | ||||
|         { | ||||
|             log("Cannot compute a free port. getsockname error."); | ||||
|   | ||||
| @@ -52,6 +52,5 @@ namespace ix | ||||
|  | ||||
|     void log(const std::string& msg); | ||||
|  | ||||
|     bool computeFreePorts(int count); | ||||
|     int getFreePort(); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user