コード例 #1
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 };
 }
コード例 #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 };
        }
コード例 #3
0
 public GetTransPacket()
 {
     LiveDecoderPacketHandle = new LiveDecoderPacketHandle();
     DecoderStateHandle = new DecoderStateHandle();
     _handlers = new IPacketHandler[] { LiveDecoderPacketHandle, DecoderStateHandle };
 }
コード例 #4
0
ファイル: GetTransPacket.cs プロジェクト: ewin66/intvideosurv
 public GetTransPacket()
 {
     LiveDecoderPacketHandle = new LiveDecoderPacketHandle();
     DecoderStateHandle      = new DecoderStateHandle();
     _handlers = new IPacketHandler[] { LiveDecoderPacketHandle, DecoderStateHandle };
 }