public static bool IsConnected(Sharpen.Net.Socket socket) { if (socket == null) { return false; } return socket.IsConnected(); }