pub unsafe extern "C" fn pomp_addr_parse(
buf: *const c_char,
addr: *mut sockaddr,
addrlen: *mut u32,
) -> c_intExpand description
Parse a socket address given as a string and convert it to sockaddr. @param buf: input string. @param addr: destination structure. @param addrlen: maximum size of destination structure as input, real size converted as output. Should be at least sizeof(struct sockaddr_storage) @return 0 in case of success, negative errno value in case of error.
Format of string is:
- inet:
: : ipv4 address with host name and port. - inet6:
: : ipv6 address with host name and port - unix:
: unix local address with file system name. - unix:@
: unix local address with abstract name.