Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Network Problems  (Read 3420 times)

0 Members and 1 Guest are viewing this topic.

atomen

  • Newbie
  • *
  • Posts: 17
    • View Profile
Network Problems
« on: February 11, 2011, 11:54:28 am »
Hi!

Quick question, I need to send data to a server via an UDP connection. I'm using a protocol for counter strike 1.6 to communicate with the server.
For a certain request (retrieving server information) you have to send an info string. This string has to end with x00 but I can't send this x00 since it also terminates the string.

In brief: How to send a data string with an zero at the end? (ex: \xFF\x6A\xGS\x00)

EDIT: I got help on the IRC. For those interested in the solution just add 1 to the string length (Socket.send(string, strlen(string) + 1);