uIP 1.0 based webserver for LPC1114 + ENC28J60
These functions can be used for converting between different data formats used by uIP. More...
Functions | |
CCIF uint16_t | uip_htons (uint16_t val) |
Convert a 16-bit quantity from host byte order to network byte order. | |
unsigned char | uiplib_ipaddrconv (char *addrstr, unsigned char *addr) |
Convert a textual representation of an IP address to a numerical representation. |
Detailed Description
These functions can be used for converting between different data formats used by uIP.
Function Documentation
CCIF uint16_t uip_htons | ( | uint16_t | val ) |
unsigned char uiplib_ipaddrconv | ( | char * | addrstr, |
unsigned char * | addr | ||
) |
Convert a textual representation of an IP address to a numerical representation.
This function takes a textual representation of an IP address in the form a.b.c.d and converts it into a 4-byte array that can be used by other uIP functions.
- Parameters:
-
addrstr A pointer to a string containing the IP address in textual form. addr A pointer to a 4-byte array that will be filled in with the numerical representation of the address.
- Return values:
-
0 If the IP address could not be parsed. Non-zero If the IP address was parsed.
Generated on Tue Jul 12 2022 12:52:12 by 1.7.2