SocketSet

a set of sockets for Berkeley.select()

Constructors

this
this(uint max)
Undocumented in source.
this
this(SocketSet o)
Undocumented in source.
this
this()
Undocumented in source.

Members

Functions

add
void add(socket_t s)
Undocumented in source.
add
void add(Berkeley* s)
Undocumented in source. Be warned that the author may not have intended to support it.
dup
SocketSet dup()
Undocumented in source. Be warned that the author may not have intended to support it.
fdelt
uint fdelt(socket_t s)
Undocumented in source. Be warned that the author may not have intended to support it.
fdmask
uint fdmask(socket_t s)
Undocumented in source. Be warned that the author may not have intended to support it.
isSet
int isSet(socket_t s)
Undocumented in source. Be warned that the author may not have intended to support it.
isSet
int isSet(Berkeley* s)
Undocumented in source. Be warned that the author may not have intended to support it.
remove
void remove(socket_t s)
Undocumented in source. Be warned that the author may not have intended to support it.
remove
void remove(Berkeley* s)
Undocumented in source. Be warned that the author may not have intended to support it.
reset
SocketSet reset()
Undocumented in source. Be warned that the author may not have intended to support it.
toFd_set
fd* toFd_set()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

count
uint count [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
count
int count [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
first
socket_t* first [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
first
uint* first [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
max
size_t max [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
maxfd
socket_t maxfd [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

select
int select(SocketSet checkRead, SocketSet checkWrite, SocketSet checkError, timeval* tv)

SocketSet's are updated to include only those sockets which an event occured.

select
int select(SocketSet checkRead, SocketSet checkWrite, SocketSet checkError, long microseconds)

select with specified timeout

select
int select(SocketSet checkRead, SocketSet checkWrite, SocketSet checkError)

select with maximum timeout

Structs

fd
struct fd
Undocumented in source.
timeval
struct timeval
Undocumented in source.

Variables

_maxfd
socket_t _maxfd;
Undocumented in source.
nfdbits
size_t nfdbits;
Undocumented in source.

Meta