partial void IsSocketConnected(ref bool isConnected) { isConnected = (_socket != null && _socket.Connected); } }