Ruby: rb_fdset_t Struct Reference

Ruby 3.2.5p208 (2024-07-26 revision 31d0f1a2e7dbfb60731d1f05b868e1d578cda493)

Data Fields
rb_fdset_t Struct Reference

The data structure which wraps the fd_set bitmap used by select(2). More...

`#include <largesize.h>`

## Data Fields
int | maxfd
| Maximum allowed number of FDs.
fd_set * | fdset
| File descriptors buffer.
int | capa
| Maximum allowed number of FDs.

## Detailed Description

The data structure which wraps the fd_set bitmap used by select(2).

This allows Ruby to use FD sets larger than that allowed by historic limitations on modern platforms.

Definition at line 71 of file largesize.h.

## Field Documentation

## ◆ capa

int rb_fdset_t::capa

Maximum allowed number of FDs.

Definition at line 50 of file win32.h.

Referenced by rb_w32_fd_copy(), and rb_w32_fd_dup().

## ◆ fdset

fd_set * rb_fdset_t::fdset

File descriptors buffer.

Definition at line 73 of file largesize.h.

Referenced by rb_fd_select(), rb_w32_fd_copy(), and rb_w32_fd_dup().

## ◆ maxfd

int rb_fdset_t::maxfd

Maximum allowed number of FDs.

Definition at line 72 of file largesize.h.

The documentation for this struct was generated from the following files:

- include/ruby/internal/intern/select/largesize.h
- include/ruby/internal/intern/select/win32.h