mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-09 18:39:25 +01:00
16 lines
319 B
C
16 lines
319 B
C
|
#include "wut_socket.h"
|
||
|
|
||
|
int connect(int sockfd,
|
||
|
const struct sockaddr *addr,
|
||
|
socklen_t addrlen)
|
||
|
{
|
||
|
int rc;
|
||
|
sockfd = __wut_get_nsysnet_fd(sockfd);
|
||
|
if (sockfd == -1) {
|
||
|
return -1;
|
||
|
}
|
||
|
rc = RPLWRAP(connect)(sockfd, addr, addrlen);
|
||
|
return __wut_get_nsysnet_result(NULL, rc);
|
||
|
}
|
||
|
|