Classes |
| struct | PRHostEnt |
| struct | PRProtoEnt |
Defines |
| #define | PR_NETDB_BUF_SIZE 1024 |
| #define | PR_AI_ALL 0x08 |
| #define | PR_AI_V4MAPPED 0x10 |
| #define | PR_AI_ADDRCONFIG 0x20 |
| #define | PR_AI_NOCANONNAME 0x8000 |
| #define | PR_AI_DEFAULT (PR_AI_V4MAPPED | PR_AI_ADDRCONFIG) |
| #define | PR_NetAddrFamily(addr) ((addr)->raw.family) |
| #define | PR_NetAddrInetPort(addr) ((addr)->raw.family == PR_AF_INET6 ? (addr)->ipv6.port : (addr)->inet.port) |
Typedefs |
| typedef struct PRHostEnt | PRHostEnt |
| typedef enum PRNetAddrValue | PRNetAddrValue |
| typedef struct PRProtoEnt | PRProtoEnt |
| typedef struct PRAddrInfo | PRAddrInfo |
Enumerations |
| enum | PRNetAddrValue {
PR_IpAddrNull,
PR_IpAddrAny,
PR_IpAddrLoopback,
PR_IpAddrV4Mapped,
PR_IpAddrNull,
PR_IpAddrAny,
PR_IpAddrLoopback,
PR_IpAddrV4Mapped
} |
Functions |
| PRStatus | PR_StringToNetAddr (const char *string, PRNetAddr *addr) |
| PRStatus | PR_NetAddrToString (const PRNetAddr *addr, char *string, PRUint32 size) |
| PRStatus | PR_GetHostByName (const char *hostname, char *buf, PRIntn bufsize, PRHostEnt *hostentry) |
| PRStatus | PR_GetIPNodeByName (const char *hostname, PRUint16 af, PRIntn flags, char *buf, PRIntn bufsize, PRHostEnt *hostentry) |
| PRStatus | PR_GetHostByAddr (const PRNetAddr *hostaddr, char *buf, PRIntn bufsize, PRHostEnt *hostentry) |
| PRIntn | PR_EnumerateHostEnt (PRIntn enumIndex, const PRHostEnt *hostEnt, PRUint16 port, PRNetAddr *address) |
| PRStatus | PR_InitializeNetAddr (PRNetAddrValue val, PRUint16 port, PRNetAddr *addr) |
| PRStatus | PR_SetNetAddr (PRNetAddrValue val, PRUint16 af, PRUint16 port, PRNetAddr *addr) |
| PRBool | PR_IsNetAddrType (const PRNetAddr *addr, PRNetAddrValue val) |
| void | PR_ConvertIPv4AddrToIPv6 (PRUint32 v4addr, PRIPv6Addr *v6addr) |
| PRStatus | PR_GetProtoByName (const char *protocolname, char *buffer, PRInt32 bufsize, PRProtoEnt *result) |
| PRStatus | PR_GetProtoByNumber (PRInt32 protocolnumber, char *buffer, PRInt32 bufsize, PRProtoEnt *result) |
| PRAddrInfo * | PR_GetAddrInfoByName (const char *hostname, PRUint16 af, PRIntn flags) |
| void | PR_FreeAddrInfo (PRAddrInfo *addrInfo) |
| void * | PR_EnumerateAddrInfo (void *enumPtr, const PRAddrInfo *addrInfo, PRUint16 port, PRNetAddr *result) |
| const char * | PR_GetCanonNameFromAddrInfo (const PRAddrInfo *addrInfo) |
| PRUint16 | PR_ntohs (PRUint16) |
| PRUint32 | PR_ntohl (PRUint32) |
| PRUint64 | PR_ntohll (PRUint64) |
| PRUint16 | PR_htons (PRUint16) |
| PRUint32 | PR_htonl (PRUint32) |
| PRUint64 | PR_htonll (PRUint64) |