Defines | |
#define | uip_ipaddr(addr, addr0, addr1, addr2, addr3) |
Pack an IP address into a 4-byte array which is used by uIP to represent IP addresses. | |
#define | HTONS(n) |
Convert 16-bit quantity from host byte order to network byte order. | |
Functions | |
u16_t | htons (u16_t val) |
Convert 16-bit quantity from host byte order to network byte order. |
|
Convert 16-bit quantity from host byte order to network byte order. This macro is primarily used for converting constants from host byte order to network byte order. For converting variables to network byte order, use the htons() function instead. |
|
Pack an IP address into a 4-byte array which is used by uIP to represent IP addresses. Example: u16_t ipaddr[2]; uip_ipaddr(&ipaddr, 192,168,1,2);
|
|
Convert 16-bit quantity from host byte order to network byte order. This function is primarily used for converting variables from host byte order to network byte order. For converting constants to network byte order, use the HTONS() macro instead. |