I need help writing a program that uses the functions:
uint32_t htonl(uint32_t hostlong)
uint32_t ntohl(uint32_t netlong)
bool isBigEndian() //This is the function that will return a 1 if the host bye ordering is the same as the network byte ordering and will return a zero otherwise.
Instructions state:
-Write a function htonl in assembly that will accept an integer variable and covert it from host byte order to network byte order.
-Write a function ntohl in assembly that will accept an integer in network byte order and return an integer in host byte order.
Thank you!