/// <exception cref="System.IO.IOException"></exception> public NetworkSocketBase(Sharpen.Net.Socket socket, string hostName) { _socket = socket; _hostName = hostName; _in = _socket.GetInputStream(); _out = _socket.GetOutputStream(); }
public static bool IsConnected(Sharpen.Net.Socket socket) { if (socket == null) { return(false); } return(socket.IsConnected()); }
/// <exception cref="System.IO.IOException"></exception> public NetworkSocket(Sharpen.Net.Socket socket) : base(socket) { }
/// <exception cref="System.IO.IOException"></exception> public NetworkSocketBase(Sharpen.Net.Socket socket) : this(socket, null) { }
/// <exception cref="System.IO.IOException"></exception> public NetworkSocketBase(Socket socket) : this(socket, null) { }