public TcpIpTerminationRecord(byte[] blok, long utcOffset)
 {
     state            = converter.GetBYTE(0x10, blok);
     protocol         = converter.GetBYTE(0x11, blok);
     startTime        = converter.GetDTutc(0x12, blok);
     startTime        = startTime.AddSeconds(utcOffset);
     localPort        = converter.GetUINT16(0x1A, blok);
     foreignPort      = converter.GetUINT16(0x1C, blok);
     foreignIp        = converter.GetIPAD(0x1E, blok);
     flagAA           = converter.GetBYTE(0x22, blok);
     localCall        = converter.GetBYTE(0x23, blok);
     retransmitted    = converter.GetUINT64(0x24, blok);
     inboundIBBK      = converter.GetUINT64(0x2C, blok);
     inboundIBBKDup   = converter.GetUINT64(0x34, blok);
     inboundByte      = converter.GetUINT64(0x3C, blok);
     inboundByteDup   = converter.GetUINT64(0x44, blok);
     outboundIBBK     = converter.GetUINT64(0x4C, blok);
     outboundIBBKDup  = converter.GetUINT64(0x54, blok);
     outboundByte     = converter.GetUINT64(0x5C, blok);
     outboundByteDup  = converter.GetUINT64(0x64, blok);
     sws              = converter.GetUINT64(0x6C, blok);
     inRetransmitMode = converter.GetUINT64(0x74, blok);
     recvWindowClosed = converter.GetUINT64(0x7C, blok);
     highestDepth     = converter.GetUINT64(0x84, blok);
     sendSocket       = converter.GetUINT64(0x8C, blok);
     rcvdSocket       = converter.GetUINT64(0x94, blok);
     maxSendWindow    = converter.GetUINT32(0x9C, blok);
     maxRecvWindow    = converter.GetUINT32(0xA0, blok);
     endTime          = converter.GetDTutc(0xA4, blok);
     endTime          = endTime.AddSeconds(utcOffset);
     partitionId      = converter.GetEBCDIC(0xAC, blok, 2);
     pik              = converter.GetUINT16(0xAE, blok);
 }
        /// <summary>
        ///
        /// </summary>
        /// <param name="blok"></param>
        /// <param name="utcOffset"></param>
        public FtpTerminationRecord(byte[] blok, long utcOffset)
        {
            this.blok      = blok;
            this.utcOffset = utcOffset;

            /*ftpNodeName = converter.GetEBCDIC(18, blok, 16);
             * ftpUserId = converter.GetEBCDIC(34, blok, 16);
             * bytesSentAcked = converter.GetUINT64(50, blok);
             * bytesReceived = converter.GetUINT64(58, blok);
             * startTime = converter.GetDTutc(66, blok);
             * startTime = startTime.AddSeconds(utcOffset);
             * endTime = converter.GetDTutc(74, blok);
             * endTime = endTime.AddSeconds(utcOffset);
             * filesReceived = converter.GetUINT32(82, blok);
             * filesSent = converter.GetUINT32(86, blok);
             * vseIp = converter.GetIPAD(90, blok);
             * clientIp = converter.GetIPAD(94, blok);
             * vsePort = converter.GetUINT16(98, blok);
             * clientPort = converter.GetUINT16(100, blok);
             * vseTaskId = converter.GetUINT16(102, blok);
             * sslFlag = converter.GetBYTE(104, blok);
             * generalFlag = converter.GetBYTE(105, blok);
             * foreignDataIp = converter.GetIPAD(106, blok);
             */
            ftpNodeName    = converter.GetEBCDIC(16, blok, 16);
            ftpUserId      = converter.GetEBCDIC(32, blok, 16);
            bytesSentAcked = converter.GetUINT64(48, blok);
            bytesReceived  = converter.GetUINT64(56, blok);
            startTime      = converter.GetDTutc(64, blok);
            startTime      = startTime.AddSeconds(utcOffset);
            endTime        = converter.GetDTutc(72, blok);
            endTime        = endTime.AddSeconds(utcOffset);
            filesReceived  = converter.GetUINT32(80, blok);
            filesSent      = converter.GetUINT32(84, blok);
            vseIp          = converter.GetIPAD(88, blok);
            clientIp       = converter.GetIPAD(92, blok);
            vsePort        = converter.GetUINT16(96, blok);
            clientPort     = converter.GetUINT16(98, blok);
            vseTaskId      = converter.GetUINT16(100, blok);
            sslFlag        = converter.GetBYTE(102, blok);
            generalFlag    = converter.GetBYTE(103, blok);
            foreignDataIp  = converter.GetIPAD(104, blok);
        }
Beispiel #3
0
        public RecConnection(byte[] blok, long utcOffset)
        {
            /*
             *          state = converter.GetBYTE(0x10, blok);
             *          protocol = converter.GetBYTE(0x11, blok);
             *          startTime = converter.GetDTutc(0x12, blok);
             *          startTime = startTime.AddSeconds(utcOffset);
             *          localPort = converter.GetUINT16(0x1A, blok);
             *          foreignPort = converter.GetUINT16(0x1C, blok);
             *          foreignIp = converter.GetIPAD(0x1E, blok);
             *          flagAA = converter.GetBYTE(0x22, blok);
             *          localCall = converter.GetBYTE(0x23, blok);
             *          retransmitted = converter.GetUINT64(0x24, blok);
             *          inboundIBBK = converter.GetUINT64(0x2C, blok);
             *          inboundIBBKDup = converter.GetUINT64(0x34, blok);
             *          inboundByte = converter.GetUINT64(0x3C, blok);
             *          inboundByteDup = converter.GetUINT64(0x44, blok);
             *          outboundIBBK = converter.GetUINT64(0x4C, blok);
             *          outboundIBBKDup = converter.GetUINT64(0x54, blok);
             *          outboundByte = converter.GetUINT64(0x5C, blok);
             *          outboundByteDup = converter.GetUINT64(0x64, blok);
             *          sws = converter.GetUINT64(0x6C, blok);
             *          inRetransmitMode = converter.GetUINT64(0x74, blok);
             *          recvWindowClosed = converter.GetUINT64(0x7C, blok);
             *          highestDepth = converter.GetUINT64(0x84, blok);
             *          sendSocket = converter.GetUINT64(0x8C, blok);
             *          rcvdSocket = converter.GetUINT64(0x94, blok);
             *          maxSendWindow = converter.GetUINT32(0x9C, blok);
             *          maxRecvWindow = converter.GetUINT32(0xA0, blok);
             *          endTime = converter.GetDTutc(0xA4, blok);
             *          endTime = endTime.AddSeconds(utcOffset);
             *          partitionId = converter.GetEBCDIC(0xAC, blok, 2);
             *          pik = converter.GetUINT16(0xAE, blok);*/

            state            = converter.GetBYTE(16, blok);
            protocol         = converter.GetBYTE(17, blok);
            startTime        = converter.GetDTutc(18, blok);
            startTime        = startTime.AddSeconds(utcOffset);
            localPort        = converter.GetUINT16(26, blok);
            foreignPort      = converter.GetUINT16(28, blok);
            foreignIp        = converter.GetIPAD(30, blok);
            flagAA           = converter.GetBYTE(34, blok);
            localCall        = converter.GetBYTE(35, blok);
            retransmitted    = converter.GetUINT64(36, blok);
            inboundIBBK      = converter.GetUINT64(44, blok);
            inboundIBBKDup   = converter.GetUINT64(52, blok);
            inboundByte      = converter.GetUINT64(60, blok);
            inboundByteDup   = converter.GetUINT64(68, blok);
            outboundIBBK     = converter.GetUINT64(76, blok);
            outboundIBBKDup  = converter.GetUINT64(84, blok);
            outboundByte     = converter.GetUINT64(92, blok);
            outboundByteDup  = converter.GetUINT64(100, blok);
            sws              = converter.GetUINT64(108, blok);
            inRetransmitMode = converter.GetUINT64(116, blok);
            recvWindowClosed = converter.GetUINT64(124, blok);
            highestDepth     = converter.GetUINT64(132, blok);
            sendSocket       = converter.GetUINT64(140, blok);
            rcvdSocket       = converter.GetUINT64(148, blok);
            maxSendWindow    = converter.GetUINT32(156, blok);
            maxRecvWindow    = converter.GetUINT32(160, blok);
            partitionId      = converter.GetEBCDIC(164, blok, 2);
            pik              = converter.GetUINT16(166, blok);
            string stepName = converter.GetEBCDIC(168, blok, 8);

            endTime = converter.GetDTutc(176, blok);
            endTime = endTime.AddSeconds(utcOffset);
        }