MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / setsockopt

Function setsockopt

components/net/sal/socket/net_sockets.c:312–317  ·  view source on GitHub ↗

* @brief Sets options on a socket. * * This function sets the specified option for the socket referenced by the file descriptor 's'. * Socket options affect the behavior of the socket and are specified by the 'level' and 'optname' parameters. * * @param s The file descriptor of the socket on which to set the option. * @param level The protocol level at which the option resides. Commo

Source from the content-addressed store, hash-verified

310 * @see bind() Binds the socket to a local address.
311 */
312int setsockopt(int s, int level, int optname, const void *optval, socklen_t optlen)
313{
314 int socket = dfs_net_getsocket(s);
315
316 return sal_setsockopt(socket, level, optname, optval, optlen);
317}
318RTM_EXPORT(setsockopt);
319
320/**

Callers 7

sys_setsockoptFunction · 0.85
dhcpd_thread_entryFunction · 0.85
clntudp_controlFunction · 0.85
win_setsockoptFunction · 0.85
tcp_senddataFunction · 0.85
tcpecho_socket_entryFunction · 0.85

Calls 2

dfs_net_getsocketFunction · 0.85
sal_setsockoptFunction · 0.85

Tested by 1

tcpecho_socket_entryFunction · 0.68