I am developing a client/server program and my client has to send messages to the server.
Sample message C structure:
struct Reg
While the code will work if you send and recv on the same endian machine - your client and server should ideally perform a host to network endian conversion to maintain coherence when inspecting clientPid.