AbstractSocketChannel

Constructors

this
this(Selector loop, ChannelType type)
Undocumented in source.

Members

Functions

close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
getOption
int getOption(SocketOptionLevel level, SocketOption option, void[] result)

Get a socket option.

getOption
int getOption(SocketOptionLevel level, SocketOption option, int32_t result)

Common case of getting integer and boolean options.

getOption
int getOption(SocketOptionLevel level, SocketOption option, Linger result)

Get the linger option.

getOption
void getOption(SocketOptionLevel level, SocketOption option, Duration result)

Get a timeout (duration) option.

isBusy
bool isBusy()
Undocumented in source. Be warned that the author may not have intended to support it.
onWriteDone
void onWriteDone()
Undocumented in source. Be warned that the author may not have intended to support it.
setOption
void setOption(SocketOptionLevel level, SocketOption option, void[] value)

Set a socket option.

setOption
void setOption(SocketOptionLevel level, SocketOption option, int32_t value)

Common case for setting integer and boolean options.

setOption
void setOption(SocketOptionLevel level, SocketOption option, Linger value)

Set the linger option.

setOption
void setOption(SocketOptionLevel level, SocketOption option, Duration value)
Undocumented in source. Be warned that the author may not have intended to support it.
setRead
void setRead(size_t bytes)
Undocumented in source. Be warned that the author may not have intended to support it.
start
void start()
Undocumented in source.

Properties

localAddress
Address localAddress [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
remoteAddress
Address remoteAddress [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
socket
Socket socket [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
socket
Socket socket [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_isWritting
bool _isWritting;
Undocumented in source.
_localAddress
Address _localAddress;
Undocumented in source.
_remoteAddress
Address _remoteAddress;
Undocumented in source.
_socket
Socket _socket;
Undocumented in source.
readLen
size_t readLen;
Undocumented in source.

Inherited Members

From AbstractChannel

handle
socket_t handle;
Undocumented in source.
errorHandler
ErrorEventHandler errorHandler;
Undocumented in source.
_isRegistered
bool _isRegistered;
Undocumented in source.
_isClosed
bool _isClosed;
Undocumented in source.
isRegistered
bool isRegistered()
isClosing
bool isClosing()
isClosed
bool isClosed()
close
void close()
doClose
void doClose()
Undocumented in source. Be warned that the author may not have intended to support it.
onClose
void onClose()
Undocumented in source. Be warned that the author may not have intended to support it.
errorOccurred
void errorOccurred(ErrorCode code, string msg)
Undocumented in source. Be warned that the author may not have intended to support it.
onRead
void onRead()
Undocumented in source. Be warned that the author may not have intended to support it.
onWrite
void onWrite()
Undocumented in source. Be warned that the author may not have intended to support it.
hasFlag
bool hasFlag(ChannelFlag index)
Undocumented in source. Be warned that the author may not have intended to support it.
type
ChannelType type [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
eventLoop
Selector eventLoop [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
setNext
void setNext(AbstractChannel next)
Undocumented in source. Be warned that the author may not have intended to support it.
clear
void clear()
Undocumented in source. Be warned that the author may not have intended to support it.
__anonymous
mixin OverrideErro
Undocumented in source.
setFlag
void setFlag(ChannelFlag index, bool enable)
Undocumented in source. Be warned that the author may not have intended to support it.
_inLoop
Selector _inLoop;
Undocumented in source.

Meta