Classes | Defines | Functions | Variables
select.h File Reference
#include "curl_setup.h"
Include dependency graph for select.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pollfd

Defines

#define CURL_CSELECT_IN2   (CURL_CSELECT_ERR << 1)
#define POLLERR   0x08
#define POLLHUP   0x10
#define POLLIN   0x01
#define POLLNVAL   0x20
#define POLLOUT   0x04
#define POLLPRI   0x02
#define SOCKET_READABLE(x, z)   Curl_socket_check(x, CURL_SOCKET_BAD, CURL_SOCKET_BAD, z)
#define SOCKET_WRITABLE(x, z)   Curl_socket_check(CURL_SOCKET_BAD, CURL_SOCKET_BAD, x, z)
#define VALID_SOCK(s)   (((s) >= 0) && ((s) < FD_SETSIZE))
#define VERIFY_SOCK(x)

Functions

int Curl_poll (struct pollfd ufds[], unsigned int nfds, int timeout_ms)
int Curl_socket_check (curl_socket_t readfd, curl_socket_t readfd2, curl_socket_t writefd, time_t timeout_ms)
int Curl_wait_ms (int timeout_ms)

Variables

int Curl_ack_eintr

Define Documentation

#define CURL_CSELECT_IN2   (CURL_CSELECT_ERR << 1)

Definition at line 72 of file select.h.

#define POLLERR   0x08

Definition at line 44 of file select.h.

#define POLLHUP   0x10

Definition at line 45 of file select.h.

#define POLLIN   0x01

Definition at line 41 of file select.h.

#define POLLNVAL   0x20

Definition at line 46 of file select.h.

#define POLLOUT   0x04

Definition at line 43 of file select.h.

#define POLLPRI   0x02

Definition at line 42 of file select.h.

Definition at line 78 of file select.h.

Definition at line 80 of file select.h.

#define VALID_SOCK (   s)    (((s) >= 0) && ((s) < FD_SETSIZE))

Definition at line 105 of file select.h.

#define VERIFY_SOCK (   x)
Value:
do { \
  if(!VALID_SOCK(x)) { \
    SET_SOCKERRNO(EINVAL); \
    return -1; \
  } \
} WHILE_FALSE

Definition at line 106 of file select.h.


Function Documentation

int Curl_poll ( struct pollfd  ufds[],
unsigned int  nfds,
int  timeout_ms 
)

Definition at line 391 of file select.c.

int Curl_socket_check ( curl_socket_t  readfd,
curl_socket_t  readfd2,
curl_socket_t  writefd,
time_t  timeout_ms 
)

Definition at line 145 of file select.c.

int Curl_wait_ms ( int  timeout_ms)

Definition at line 75 of file select.c.


Variable Documentation

Definition at line 56 of file select.c.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:09