示例#1
0
        /// <summary>触发超时事件
        /// </summary>
        /// <param name="packet">The packet.</param>
        private void FireOperationTimeOutEvent(OutPacket packet, string portName)
        {
            ErrorPacket error = new ErrorPacket(ErrorPacketType.ERROR_TIMEOUT, client);

            error.TimeOutPacket = packet;
            error.Header        = packet.Header;
            error.Family        = packet.GetFamily();
            error.ConnectionId  = portName;
            client.PacketManager.AddIncomingPacket(error, portName);
        }