SyntaxFix
Write A Post
Hire A Developer
Questions
Use the network byte order (big endian), which is the same as Java uses anyway. See man htons for the different translators in C.