* @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
| 310 | * @see bind() Binds the socket to a local address. |
| 311 | */ |
| 312 | int 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 | } |
| 318 | RTM_EXPORT(setsockopt); |
| 319 | |
| 320 | /** |