* @brief Initiates a connection on a socket. * * This function connects the socket specified by 's' to the server address specified by 'name'. * The socket must have been created with 'socket()' and, for some types of sockets, may need * to be bound to a local address with 'bind()' before calling 'connect()'. * * @param s The file descriptor of the socket to connect. * @param name
| 341 | * @see close()/closesocket() Closes the socket when done. |
| 342 | */ |
| 343 | int connect(int s, const struct sockaddr *name, socklen_t namelen) |
| 344 | { |
| 345 | int socket = dfs_net_getsocket(s); |
| 346 | return sal_connect(socket, name, namelen); |
| 347 | } |
| 348 | RTM_EXPORT(connect); |
| 349 | |
| 350 | /** |
no test coverage detected