Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/i/inet_net_pton.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/i/inet_net_pton.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/i/inet_net_pton.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/i/inet_net_pton.html on line 8
Convert an Internet network number from CIDR format to network format
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
int inet_net_pton( int af,
const char * src,
void * dst,
size_t size );
- af
- The address family.
Currently, only AF_INET is supported.
- src
- A pointer to the presentation-format (CIDR) address.
The format of the address is interpreted according to af.
- dst
- A pointer to the buffer where the function can store the converted
address.
- size
- The size of the buffer pointed to by dst, in bytes.
libsocket
Use the -l socket option to
qcc
to link against this library.
The inet_net_pton() function
converts an Internet network number from presentation format —
a printable form as held in a character string, such as,
Internet standard dot notation, or Classless Internet Domain Routing (CIDR)
—
to network format
(usually a struct in_addr or some other internal binary representation, in network byte order).
For more information on Internet addresses, see
inet_net_ntop().
The number of bits that specify the network number
(computed based on the class, or specified with /CIDR),
or -1 if an error occurred
(errno
is set).
- ENOENT
- Invalid argument af.
QNX Neutrino
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
inet_aton(),
inet_net_ntop()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/i/inet_net_pton.html on line 152
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/i/inet_net_pton.html on line 152