Function libzt::zts_udp_server [−][src]
pub unsafe extern "C" fn zts_udp_server(
local_ipstr: *const c_char,
local_port: c_ushort
) -> c_int
Expand description
@brief A convenience function that takes a remote address IP string and creates the appropriate type of socket, and binds to it.
@param local_ipstr Local address to bind @param local_port Local port to bind
@return New file descriptor if successful, ZTS_ERR_SERVICE
if the node
experiences a problem, ZTS_ERR_ARG
if invalid argument. Sets zts_errno