Is there a way to convert an integer into a network short integer on the iphone? Also, how do I convert a network short to a host short. In c, it's htons and ntohs
Thanks
Is there a way to convert an integer into a network short integer on the iphone? Also, how do I convert a network short to a host short. In c, it's htons and ntohs
Thanks
You're programming in C on the iPhone. You can just use those functions.
There are also the CoreFoundation Byte-Order Utilities.