예제 #1
0
        public Record ParseRecord(RecordHeader headerParser, ref MemoryStream ms)
        {
            var cpuType      = _recordNameParser.ParseText(ref ms);
            var operatingSys = _recordNameParser.ParseText(ref ms);
            var answer       = "CPU: " + cpuType + ", OS: " + operatingSys;

            return(new HInfoRecord(cpuType, operatingSys, answer));
        }
예제 #2
0
        public Record ParseRecord(RecordHeader header, ref MemoryStream ms)
        {
            var address    = _parser.ParseText(ref ms);
            var subAddress = _parser.ParseText(ref ms);
            var answer     = "ISDN Address: " + address + ", SubAddress: " + subAddress;

            return(new IsdnRecord(address, subAddress, answer));
        }
예제 #3
0
        public Record ParseRecord(RecordHeader header, ref MemoryStream ms)
        {
            var x25Address = _parser.ParseText(ref ms);
            var answer     = "X.25  X.121 Address: " + x25Address;

            return(new X25Record(x25Address, answer));
        }
예제 #4
0
        public Record ParseRecord(RecordHeader header, ref MemoryStream ms)
        {
            var text = _parser.ParseText(ref ms);

            return(new TxtRecord(text, "text: " + text));
        }