예제 #1
0
        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;
        }
예제 #2
0
		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;
		}