Function libzt::zts_socket[][src]

pub unsafe extern "C" fn zts_socket(
    family: c_int,
    type_: c_int,
    protocol: c_int
) -> c_int
Expand description

@brief Create a socket

@param family ZTS_AF_INET or ZTS_AF_INET6 @param type ZTS_SOCK_STREAM or ZTS_SOCK_DGRAM @param protocol Protocols supported on this socket @return Numbered file descriptor on success, ZTS_ERR_SERVICE if the node experiences a problem, ZTS_ERR_ARG if invalid argument. Sets zts_errno