riot_sys::bindgen

Function gnrc_tcp_ep_init

Source
pub unsafe extern "C" fn gnrc_tcp_ep_init(
    ep: *mut gnrc_tcp_ep_t,
    family: c_int,
    addr: *const u8,
    addr_size: size_t,
    port: u16,
    netif: u16,
) -> c_int
Expand description

@brief Initialize TCP connection endpoint.

@param[in,out] ep Endpoint to initialize. @param[in] family Address family of @p addr. @param[in] addr Address for endpoint. @param[in] addr_size Size of @p addr. @param[in] port Port number for endpoint. @param[in] netif Network interface to use.

@return 0 on success. @return -EAFNOSUPPORT if @p address_family is not supported. @return -EINVAL if @p addr_size does not match @p family.