Oh, looks like I had forgotten to add -lws2_32 to my linker. I managed to get Winsock.h to work, and ntohl did the trick. Thanks very much for the help.
Type: Posts; User: Alexlf
Oh, looks like I had forgotten to add -lws2_32 to my linker. I managed to get Winsock.h to work, and ntohl did the trick. Thanks very much for the help.
Which header would I have to include for that? Sorry if it's obvious.
EDIT
I suppose it would help to know that I'm on windows.
Hello, hope someone can help me. I was wondering if there was an easy, portable way(I know I'm asking alot) to switch the byte order of an integer. From what I've found so far, I can use some...