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

Function getsockopt

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

* @brief Retrieves options for a socket. * * This function retrieves the current value for a specified option on a socket, identified * by the file descriptor 's'. The option is specified by the 'level' and 'optname' parameters. * * @param s The file descriptor of the socket from which to retrieve the option. * @param level The protocol level at which the option resides. Common lev

Source from the content-addressed store, hash-verified

273 * @see setsockopt() Sets options for the socket.
274 */
275int getsockopt(int s, int level, int optname, void *optval, socklen_t *optlen)
276{
277 int socket = dfs_net_getsocket(s);
278
279 return sal_getsockopt(socket, level, optname, optval, optlen);
280}
281RTM_EXPORT(getsockopt);
282
283/**

Callers 2

sys_getsockoptFunction · 0.85
win_getsockoptFunction · 0.85

Calls 2

dfs_net_getsocketFunction · 0.85
sal_getsockoptFunction · 0.85

Tested by

no test coverage detected