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 }; }
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 }; }
public GetTransPacket() { LiveDecoderPacketHandle = new LiveDecoderPacketHandle(); DecoderStateHandle = new DecoderStateHandle(); _handlers = new IPacketHandler[] { LiveDecoderPacketHandle, DecoderStateHandle }; }