title: How to send float[] via UDP + Unsigned-Long-Operator-Curiosity
body: <p>I am writing an C++ Application which reads several voltages from a device. I receive these measurements in an <code>float[]</code> and I want to send this array via UDP to a MATLAB-Script.</p>
  
  <p>the C++-function sendto needs to get an <code>char[]</code> buffer and I really have no idea how to convert the <code>float[]</code> into a <code>char[]</code> buffer so i can reassemble it easily in MATLAB. Any Ideas?</p>
  
  <p>Another problem i encountered is that line</p>
  
  <pre><code>addr.sin_addr = inet_addr("127.0.0.1");
  </code></pre>
  
  <p>inet_addr returns an unsigned long, but my compiler tells me that the = operator does not accept an unsigend long datatype on its right side. Any Iideas about this?</p>