Inet_ntop manual






















function inet6_ntop ($ip) {. $l = strlen ($ip); if ($l == 4 or $l == 16) {. return inet_ntop (pack ('A'. $l, $ip)); } return ''; } You don't need a function going the other way because MySQL's INET6_NTOA is already compatible with PHP's inet_pton function. up. inet_ntop. Portability problems fixed by Gnulib: This function is missing on some platforms: HP-UX , mingw, MSVC This function is declared in instead of inet.h on some platforms: NonStop Kernel. This function is declared in, with a POSIX incompatible declaration, on some platforms: MSVC 14 on Windows. INET_NTOP(3) Linux Programmer's Manual INET_NTOP(3) NAME top inet_ntop - convert IPv4 and IPv6 addresses from binary to text form SYNOPSIS top #include const char *inet_ntop(int af, const void *restrict src, char *restrict dst, socklen_t size); DESCRIPTION top.


inet_ntop() extends the inet_ntoa(3) function to support multiple address families, inet_ntoa(3) is now considered to be deprecated in favor of inet_ntop(). The inet_addr() and inet_network() functions return numbers suitable for use as Internet addresses and Internet network numbers, respectively. The function inet_ntop () converts an address *src from network format (usually a struct in _ addr or some other binary form, in network byte order) to presentation format (suitable for external display purposes). This function converts the network address structure src in the af address family into a character string. The resulting string is copied to the buffer pointed to by dst, which must be a non-null pointer. The caller specifies the number of bytes available in this buffer in the argument size. inet_ntop () extends the inet_ntoa (3) function to support multiple address families, inet_ntoa (3) is now considered to be deprecated in favor of inet_ntop ().


5 កញ្ញា The inet_ntop() function is an inbuilt function in PHP which converts a Reference: www.doorway.ru OSError is raised for errors from the call to inet_ntop(). See the Unix manual page recv(2) for the meaning of the optional argument flags;. «inet_ntop · ip2long» · PHP 5 Manual · Network Functions; Converts a human readable IP address to its packed in_addr representation.

0コメント

  • 1000 / 1000