API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

STD_INET_PTON()

Brew Release
Brew MP 1.0.2
See Also
std_inet_aton() std_inet_ntoa() std_inet_ntop()
Description
A helper function that converts from presentation format (which usually means ASCII-printable) to network format (which is usually some kind of binary format).
Params
af
[]:
Address family of the address being processed.
src
[]:
An address in presentation format.
dst
[]:
Pointer to a network format address.
Prototype
  •    int std_inet_pton(int af, const char *src, void *dst)
    
Return
  • 1: if the address was valid for the specified address family 0: if the address wasn't valid (dst is untouched in this case) (-1): if some other error occurred (dst is untouched in this case, too)
Side Effect
  • None
Comments
None