Search This Blog

Thursday, July 19, 2012

socat printing hex data


user -x option to print x values.




socat -xd udp-recv:2000 stdout

example output :

> 2012/07/19 11:17:42.705658  length=9 from=0 to=8
 10 02 45 04 78 1c 54 10 03
ExT> 2012/07/19 11:17:43.755924  length=9 from=9 to=17

No comments: