AbstractDatagramSocket

UDP Socket

Constructors

this
this(Selector loop, AddressFamily family)

Constructs a blocking IPv4 UDP Socket.

Members

Functions

Bind
void Bind(Address addr)
Undocumented in source. Be warned that the author may not have intended to support it.
BindAddr
Address BindAddr()
Undocumented in source. Be warned that the author may not have intended to support it.
DoRead
void DoRead()
Undocumented in source. Be warned that the author may not have intended to support it.
IsBind
bool IsBind()
Undocumented in source. Be warned that the author may not have intended to support it.
Start
void Start()
Undocumented in source. Be warned that the author may not have intended to support it.
buildAddress
Address buildAddress()
Undocumented in source. Be warned that the author may not have intended to support it.
tryRead
bool tryRead(SimpleActionHandler read)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin CheckIocpError
Undocumented in source.

Variables

_bindAddress
Address _bindAddress;
Undocumented in source.
_binded
bool _binded;
Undocumented in source.
_dataReadBuffer
WSABUF _dataReadBuffer;
Undocumented in source.
_iocpread
IocpContext _iocpread;
Undocumented in source.
remoteAddr
sockaddr remoteAddr;
Undocumented in source.
remoteAddrLen
int remoteAddrLen;
Undocumented in source.

Mixed In Members

From mixin CheckIocpError

checkErro
void checkErro(int ret, int erro)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From AbstractSocketChannel

_isWritting
bool _isWritting;
Undocumented in source.
_socket
Socket _socket;
Undocumented in source.
IsBusy
bool IsBusy()
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.
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.

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.
RemoteAddress
Address RemoteAddress()
Undocumented in source. Be warned that the author may not have intended to support it.
_remoteAddress
Address _remoteAddress;
Undocumented in source.
LocalAddress
Address LocalAddress()
Undocumented in source. Be warned that the author may not have intended to support it.
_localAddress
Address _localAddress;
Undocumented in source.
setRead
void setRead(size_t bytes)
Undocumented in source. Be warned that the author may not have intended to support it.
readLen
size_t readLen;
Undocumented in source.
Start
void Start()
Undocumented in source.
OnWriteDone
void OnWriteDone()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta