Lines Matching refs:sock
73 rk_socket_t sock,
142 if (rk_IS_SOCKET_ERROR( sendmsg (sock, &msghdr, 0) )) {
165 rk_socket_t sock,
252 if (rk_IS_SOCKET_ERROR( sendmsg (sock, &msghdr, 0) )) {
269 rk_socket_t sock,
287 ret = recvfrom (sock, reply + len, sizeof(reply) - len,
316 ret = recvfrom (sock, reply, sizeof(reply), 0, NULL, NULL);
518 rk_socket_t sock;
565 sock = socket (a->ai_family, a->ai_socktype | SOCK_CLOEXEC, a->ai_protocol);
566 if (rk_IS_BAD_SOCKET(sock))
568 rk_cloexec(sock);
570 ret = connect(sock, a->ai_addr, a->ai_addrlen);
572 rk_closesocket (sock);
576 ret = krb5_auth_con_genaddrs (context, auth_context, sock,
579 rk_closesocket (sock);
595 sock,
599 rk_closesocket(sock);
605 if (sock >= FD_SETSIZE) {
608 "fd %d too large", sock);
609 rk_closesocket (sock);
615 FD_SET(sock, &fdset);
619 ret = select (sock + 1, &fdset, NULL, NULL, &tv);
621 rk_closesocket(sock);
628 sock,
641 rk_closesocket (sock);