c# - Correct encoding to read net flow protocol -


i trying figure out how correctly encode data received net flow. have listener on net flow port , able read data, see destination ip, nothing else. how can correctly interpret net flow data? using c# , have tried encoding such unicode, utf8, utf37, , utf7 none of encoding readable interpret data. cannot seem find answer online, or guidance appreciated.

possibly when encoded in utf8 need start filtering. example of short data read found below:

received broadcast *.*.*.1:5557 :  # ?,0y???   ?    v?? : ?$?       ?           ?? ?*?  w??@ ?   h  h       .   ?p ?*? 

when utf 8, can pick out identifiers such ack, bel, , soh. need work with?

example snippet of encoding read:

 console.writeline("waiting broadcast");             byte[] bytes = listener.receive(ref groupep);              console.writeline("received broadcast {0} :\n {1}\n",                 groupep.tostring(),                 encoding.utf8.getstring(bytes, 0, bytes.length));              file.writeline(string.format("received broadcast {0} :\n {1}\n",                 groupep.tostring(),                 encoding.ascii.getstring(bytes, 0, bytes.length))); 


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -