public DecoderClientConnection(Socket socket)
 {
     string errMessage = "";
     _socket = socket;
     Ip = ((IPEndPoint) socket.RemoteEndPoint).Address.ToString();
     Port = ((IPEndPoint)socket.RemoteEndPoint).Port;
     DecoderInfo = DecoderBusiness.Instance.GetDecoderInfoByDecoderIP(ref errMessage, Ip);
     _networkStream = new NetworkStream(socket);
     LiveDecoderPacketHandle = new LiveDecoderPacketHandle();
     DecoderStateHandle = new DecoderStateHandle();
     _handlers = new IPacketHandler[] { LiveDecoderPacketHandle, DecoderStateHandle };
 }
Ejemplo n.º 2
0
        public DecoderClientConnection(Socket socket)
        {
            string errMessage = "";

            _socket                 = socket;
            Ip                      = ((IPEndPoint)socket.RemoteEndPoint).Address.ToString();
            Port                    = ((IPEndPoint)socket.RemoteEndPoint).Port;
            DecoderInfo             = DecoderBusiness.Instance.GetDecoderInfoByDecoderIP(ref errMessage, Ip);
            _networkStream          = new NetworkStream(socket);
            LiveDecoderPacketHandle = new LiveDecoderPacketHandle();
            DecoderStateHandle      = new DecoderStateHandle();
            _handlers               = new IPacketHandler[] { LiveDecoderPacketHandle, DecoderStateHandle };
        }
Ejemplo n.º 3
0
 public GetTransPacket()
 {
     LiveDecoderPacketHandle = new LiveDecoderPacketHandle();
     DecoderStateHandle = new DecoderStateHandle();
     _handlers = new IPacketHandler[] { LiveDecoderPacketHandle, DecoderStateHandle };
 }
Ejemplo n.º 4
0
 public GetTransPacket()
 {
     LiveDecoderPacketHandle = new LiveDecoderPacketHandle();
     DecoderStateHandle      = new DecoderStateHandle();
     _handlers = new IPacketHandler[] { LiveDecoderPacketHandle, DecoderStateHandle };
 }