i want to prepare a byte buffer as a upd packet i want to fill each value in reverse order how can i do so in ansi c
i have to do this on windows system,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming you are doing this so it will work on any receiving system:
Use htonl() on each byte in your buffer when sending and ntohl() on each received byte.