nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ slm_bind_to_local_addr()

int slm_bind_to_local_addr ( int socket,
int family,
uint16_t port )

Bind socket to a local network address.

Parameters
socketSocket to bind.
familySocket family (AF_INET/AF_INET6).
portPort to bind to.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.