2017-08-18 20:53:30 +00:00
|
|
|
module Native_Functions {
|
|
|
|
|
2018-01-29 14:18:17 +00:00
|
|
|
/* direct import of inet_pton(AF_INET6) C function, returns net byte order */
|
|
|
|
external function f_inet6_addr(in charstring ch) return octetstring;
|
2017-08-19 11:06:14 +00:00
|
|
|
/* direct import of inet_addr() C function, returns net byte order */
|
2017-08-18 20:53:30 +00:00
|
|
|
external function f_inet_addr(in charstring ch) return octetstring;
|
2017-08-19 11:06:14 +00:00
|
|
|
/* like inet_addr() but return is host byte order */
|
|
|
|
external function f_inet_haddr(in charstring ch) return octetstring;
|
|
|
|
|
|
|
|
/* direct import of inet_ntoa() C function, input net byte order */
|
|
|
|
external function f_inet_ntoa(in octetstring oct) return charstring;
|
|
|
|
/* like inet_ntoa() but input is host byte order */
|
|
|
|
external function f_inet_hntoa(in octetstring oct) return charstring;
|
2017-08-18 20:53:30 +00:00
|
|
|
}
|