title: How to "replay" wireshark c-array in perl or C
body: <p>How would one go about taking hex data into a program and sending it back out?</p>
  
  <pre><code>char peer0_0[] = {
  0x00, 0x00, 0x10, 0x01, 0xbf, 0x8b, 0xf9, 0x00, 
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 
  0x00, 0x00, 0x00, 0x07 };
  
  char peer0_1[] = {
  0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04 };
  
  char peer0_2[] = {
  0x02, 0x00, 0x00, 0x00 };
  </code></pre>