Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions main/php_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@

#define PHP_IO_COPY_ALL SIZE_MAX

typedef enum php_io_fd_type {
C23_ENUM(php_io_fd_type, uint8_t) {
PHP_IO_FD_FILE = 1,
PHP_IO_FD_SOCKET,
PHP_IO_FD_PIPE,
} php_io_fd_type;
};

typedef struct php_io_fd {
union {
int fd;
php_socket_t socket;
};
php_io_fd_type fd_type;
bool is_blocked;
struct timeval timeout;
unsigned is_blocked:1;
} php_io_fd;

typedef zend_result (*php_io_copy_fn)(php_io_fd *src, php_io_fd *dest, size_t maxlen, size_t *copied);
Expand Down
Loading