unique_ptr for sockets
This commit is contained in:
		@@ -95,7 +95,7 @@ namespace ix
 | 
			
		||||
        std::atomic<bool> _stop;
 | 
			
		||||
        std::thread _thread;
 | 
			
		||||
 | 
			
		||||
        std::shared_ptr<Socket> _socket;
 | 
			
		||||
        std::unique_ptr<Socket> _socket;
 | 
			
		||||
        std::mutex _mutex; // to protect accessing the _socket (only one socket per client)
 | 
			
		||||
 | 
			
		||||
        SocketTLSOptions _tlsOptions;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user