Ejemplo n.º 1
0
        EofPacket ParseEOF()
        {
            EofPacket eofPacket = new EofPacket(_conn.IsProtocol41);//if temp[4]=0xfe then eof packet

            eofPacket.ParsePacketHeader(_parser);
            _receiveBuffer = CheckLimit(eofPacket.GetPacketLength(), _receiveBuffer, DEFAULT_BUFFER_SIZE);
            eofPacket.ParsePacket(_parser);

            CheckBeforeParseHeader(_receiveBuffer);
            return(eofPacket);
        }