• Home
  • Raw
  • Download

Lines Matching refs:fh

220   void operator()(struct FHRec_* fh) {  in operator ()()  argument
226 _fh_close(fh); in operator ()()
613 FH fh = _fh_from_int(fds[i].fd, __func__); in adb_poll() local
614 if (!fh || !fh->used || fh->clazz != &_fh_socket_class) { in adb_poll()
620 .fd = fh->u.socket, in adb_poll()
1072 unique_fh fh(_fh_alloc(&_fh_socket_class)); in adb_socket_accept() local
1073 if (!fh) { in adb_socket_accept()
1079 fh->fh_socket = accept(serverfh->fh_socket, addr, addrlen); in adb_socket_accept()
1080 if (fh->fh_socket == INVALID_SOCKET) { in adb_socket_accept()
1088 const int fd = _fh_to_int(fh.get()); in adb_socket_accept()
1089 snprintf(fh->name, sizeof(fh->name), "%d(accept:%s)", fd, serverfh->name); in adb_socket_accept()
1091 fh.release(); in adb_socket_accept()
1096 FH fh = _fh_from_int(fd, __func__); in adb_setsockopt() local
1098 if (!fh || fh->clazz != &_fh_socket_class) { in adb_setsockopt()
1109 setsockopt(fh->fh_socket, level, optname, reinterpret_cast<const char*>(optval), optlen); in adb_setsockopt()
1121 FH fh = _fh_from_int(fd, __func__); in adb_getsockname() local
1123 if (!fh || fh->clazz != &_fh_socket_class) { in adb_getsockname()
1129 int result = getsockname(fh->fh_socket, sockaddr, optlen); in adb_getsockname()
1229 FH fh = _fh_from_int(fd, __func__); in set_file_block_mode() local
1231 if (!fh || !fh->used) { in set_file_block_mode()
1237 if (fh->clazz == &_fh_socket_class) { in set_file_block_mode()
1239 if (ioctlsocket(fh->u.socket, FIONBIO, &x) != 0) { in set_file_block_mode()
1254 FH fh = _fh_from_int(fd, __func__); in set_tcp_keepalive() local
1256 if (!fh || fh->clazz != &_fh_socket_class) { in set_tcp_keepalive()
1268 if (WSAIoctl(fh->fh_socket, SIO_KEEPALIVE_VALS, &keepalive, sizeof(keepalive), nullptr, 0, in set_tcp_keepalive()