public XSPWorker(Socket client, EndPoint localEP, ApplicationServer server) { stream = new LingeringNetworkStream(client, false); sock = client; this.server = server; try { remoteEP = (IPEndPoint)client.RemoteEndPoint; } catch { } this.localEP = (IPEndPoint)localEP; }
public XSPWorker (Socket client, EndPoint localEP, ApplicationServer server) { stream = new LingeringNetworkStream (client, false); sock = client; this.server = server; try { remoteEP = (IPEndPoint) client.RemoteEndPoint; } catch { } this.localEP = (IPEndPoint) localEP; }