I am writing server and client and i have some integers to pass.
In my server application i am recieving an integer from the client.
In the client do i call ntohl or htonl on the integer? If i call either one of these, when i recieve the integer do i have to call ntohl or htonl again? Or do i only call ntohl/htonl on the server side, but not the client side?
In other words, when/where and how many times do i use htonl or ntohl for each integer?
Also, do i have to do ntohl/htonl for strings/chars arrays? Does chars have to be converted?