title: Problem reading hexadecimal buffer from C socket
body: <p>I'm using the SDL_net sockets API to create a server and client. I can easily read a string buffer, but when I try to send hexadecimal data, recv gets the length, but I cannot seem to be a able to read the buffer contents.</p>
  
  <pre><code>IPaddress ip;
  TCPsocket server,client;
  int bufSize = 1024;
  char message[bufSize];
  int len;
  
  server = SDLNet_TCP_Open(&amp;ip);
  client = SDLNet_TCP_Accept(server);
  len = SDLNet_TCP_Recv(client,message,bufSize);
  </code></pre>
  
  <p>Here's a snippet. the buffer length "<strong>len</strong>" is set (i.e. message length) but I can't get to the data contents in the message buffer. Some sample <i>bind_transmitter</i> PDU data was sent by a random client to the server at that port. I can't read the PDU (SMPP).</p>