Function nrfxlib_sys::nrf_socket [−][src]
pub unsafe extern "C" fn nrf_socket(
family: c_int,
type_: c_int,
protocol: c_int
) -> c_int
Function for creating a socket.
s API to create a socket that can be used for network communication independently of lower protocol layers.
family
- The protocol family of the network protocol to use.type
- The protocol type to use for this socket.protocol
- The transport protocol to use for this socket.
Returns A non-negative socket descriptor on success, or -1 on error.