Socket Factory has only one function which works for server and client code, and can do tls for both
This commit is contained in:
		@@ -147,7 +147,7 @@ namespace ix
 | 
			
		||||
 | 
			
		||||
        bool tls = protocol == "https";
 | 
			
		||||
        std::string errorMsg;
 | 
			
		||||
        _socket = createSocket(tls, errorMsg, _tlsOptions);
 | 
			
		||||
        _socket = createSocket(tls, -1, errorMsg, _tlsOptions);
 | 
			
		||||
 | 
			
		||||
        if (!_socket)
 | 
			
		||||
        {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user