Home
last modified time | relevance | path

Searched refs:fd_ptr (Results 1 – 2 of 2) sorted by relevance

/external/libevent/
Devutil.c527 evutil_socket_connect_(evutil_socket_t *fd_ptr, const struct sockaddr *sa, int socklen) in evutil_socket_connect_() argument
531 if (*fd_ptr < 0) { in evutil_socket_connect_()
532 if ((*fd_ptr = socket(sa->sa_family, SOCK_STREAM, 0)) < 0) in evutil_socket_connect_()
535 if (evutil_make_socket_nonblocking(*fd_ptr) < 0) { in evutil_socket_connect_()
540 if (connect(*fd_ptr, sa, socklen) < 0) { in evutil_socket_connect_()
541 int e = evutil_socket_geterror(*fd_ptr); in evutil_socket_connect_()
553 evutil_closesocket(*fd_ptr); in evutil_socket_connect_()
554 *fd_ptr = -1; in evutil_socket_connect_()
Dutil-internal.h264 int evutil_socket_connect_(evutil_socket_t *fd_ptr, const struct sockaddr *sa, int socklen);