Lines Matching refs:fh
229 void operator()(struct FHRec_* fh) { in operator ()() argument
235 _fh_close(fh); in operator ()()
533 FH fh = _fh_from_int(fds[i].fd, __func__); in adb_poll() local
534 if (!fh || !fh->used || fh->clazz != &_fh_socket_class) { in adb_poll()
540 .fd = fh->u.socket, in adb_poll()
928 unique_fh fh(_fh_alloc( &_fh_socket_class )); in adb_socket_accept() local
929 if (!fh) { in adb_socket_accept()
935 fh->fh_socket = accept( serverfh->fh_socket, addr, addrlen ); in adb_socket_accept()
936 if (fh->fh_socket == INVALID_SOCKET) { in adb_socket_accept()
944 const int fd = _fh_to_int(fh.get()); in adb_socket_accept()
945 snprintf( fh->name, sizeof(fh->name), "%d(accept:%s)", fd, serverfh->name ); in adb_socket_accept()
947 fh.release(); in adb_socket_accept()
954 FH fh = _fh_from_int(fd, __func__); in adb_setsockopt() local
956 if ( !fh || fh->clazz != &_fh_socket_class ) { in adb_setsockopt()
966 int result = setsockopt( fh->fh_socket, level, optname, in adb_setsockopt()
979 FH fh = _fh_from_int(fd, __func__); in adb_getsockname() local
981 if (!fh || fh->clazz != &_fh_socket_class) { in adb_getsockname()
987 int result = (getsockname)(fh->fh_socket, sockaddr, optlen); in adb_getsockname()
1113 FH fh = _fh_from_int(fd, __func__); in set_file_block_mode() local
1115 if (!fh || !fh->used) { in set_file_block_mode()
1121 if (fh->clazz == &_fh_socket_class) { in set_file_block_mode()
1123 if (ioctlsocket(fh->u.socket, FIONBIO, &x) != 0) { in set_file_block_mode()
1138 FH fh = _fh_from_int(fd, __func__); in set_tcp_keepalive() local
1140 if (!fh || fh->clazz != &_fh_socket_class) { in set_tcp_keepalive()
1152 if (WSAIoctl(fh->fh_socket, SIO_KEEPALIVE_VALS, &keepalive, sizeof(keepalive), nullptr, 0, in set_tcp_keepalive()