/// <exception cref="System.IO.IOException"></exception> public NetworkSocket(Socket socket) : base(socket) { }
public static bool IsConnected(Socket socket) { if (socket == null) { return false; } return socket.IsConnected(); }
/// <exception cref="System.IO.IOException"></exception> public virtual ISocket4 Accept() { Sharpen.Net.Socket sock = Socket().Accept(); // TODO: check connection permissions here return(new NetworkSocket(sock)); }