Socket module

inet_pton

procedureforeign5 overloadsSource
inet_pton :: (Family: s32, pszAddrString: *u8, pAddrBuf: *void) -> s32 #foreign

Parameters

Family: s32
pszAddrString: *u8
pAddrBuf: *void

Returns

s32
inet_pton :: (family: s32, source: *u8, destination: *void) -> s32

Reads the text source as an address of the family family (AF_INET or AF_INET6) into destination (4 or 16 bytes). Returns 1 on success, 0 when the text is not an address, -1 for another family.

Parameters

family: s32
source: *u8
destination: *void

Returns

s32
inet_pton :: (unknown0: s32, unknown1: *u8, unknown2: *void) -> s32 #foreign

Parameters

unknown0: s32
unknown1: *u8
unknown2: *void

Returns

s32
inet_pton :: (__af: s32, __cp: *u8, __buf: *void) -> s32 #foreign

Parameters

__af: s32
__cp: *u8
__buf: *void

Returns

s32
inet_pton :: (__af: s32, __src: *u8, __dst: *void) -> s32 #foreign

Parameters

__af: s32
__src: *u8
__dst: *void

Returns

s32

See also