Search:

Type: Posts; User: Jupiter

Search: Search took 0.00 seconds.

  1. Thanks guys! This has been illuminating.

    Thanks guys! This has been illuminating.
  2. Thanks guys! This is starting to make more and...

    Thanks guys! This is starting to make more and more sense! anduril462, to further elaborate on your example, after I write it out, how should I extract it?



    char packet[10];
    int x = 42; //...
  3. I see. So how does one know if the data is not...

    I see. So how does one know if the data is not yet in network byte order?
  4. Thanks for your replies! Sorry about the bad code...

    Thanks for your replies! Sorry about the bad code examples. Those are typos. I was trying to whip up some quick samples highlighting my problem. My actual code is pretty bloated currently, and there...
  5. Need help with loading and extracting bytes from a packet -network byte order trouble

    Hi guys, I'm relatively new to C programming, and am having a hard time with the network byte order stuff. It seems like it should be simple, htons/htonl before writing, and ntohs/ntohl when reading....
Results 1 to 5 of 5