Selector

Constructors

this
this(size_t id, size_t divider, size_t maxChannels)
Undocumented in source.

Members

Aliases

isOpen
alias isOpen = isRuning
Undocumented in source.

Functions

deregister
bool deregister(AbstractChannel channel)
Undocumented in source. Be warned that the author may not have intended to support it.
dispose
void dispose()
Undocumented in source. Be warned that the author may not have intended to support it.
doSelect
int doSelect(long timeout)
Undocumented in source.
getId
size_t getId()
Undocumented in source. Be warned that the author may not have intended to support it.
isReady
bool isReady()
Undocumented in source. Be warned that the author may not have intended to support it.
isRuning
bool isRuning()

Tells whether or not this selector is running.

isSelfThread
bool isSelfThread()
Undocumented in source. Be warned that the author may not have intended to support it.
isStopping
bool isStopping()
Undocumented in source. Be warned that the author may not have intended to support it.
onLoop
void onLoop(long timeout)

timeout: in millisecond

onStop
void onStop()
Undocumented in source. Be warned that the author may not have intended to support it.
register
bool register(AbstractChannel channel)
Undocumented in source. Be warned that the author may not have intended to support it.
run
void run(long timeout)

timeout: in millisecond

runAsync
void runAsync(long timeout, SimpleEventHandler handler)

timeout: in millisecond

select
int select(long timeout)

timeout: in millisecond

select
int select()
Undocumented in source. Be warned that the author may not have intended to support it.
selectNow
int selectNow()
Undocumented in source. Be warned that the author may not have intended to support it.
stop
void stop()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_id
size_t _id;
Undocumented in source.
divider
size_t divider;
Undocumented in source.
fd
int fd;
Undocumented in source.
idleTime
long idleTime;
Undocumented in source.

Meta