Context

Socket context

Constructors

this
this(us_socket_context_t* handle)
Undocumented in source.
this
this(us_loop_t* loop, SSLOptions sslOptions)
Undocumented in source.

Alias This

handle

Members

Functions

free
void free()
Undocumented in source. Be warned that the author may not have intended to support it.
listen
auto listen(string host, ushort port)
Undocumented in source. Be warned that the author may not have intended to support it.
onClose
void onClose(OnSocketClose onClose)
Undocumented in source. Be warned that the author may not have intended to support it.
onData
void onData(OnSocketData onData)
Undocumented in source. Be warned that the author may not have intended to support it.
onEnd
void onEnd(OnSocketEnd onEnd)
Undocumented in source. Be warned that the author may not have intended to support it.
onOpen
void onOpen(OnSocketOpen onOpen)
Undocumented in source. Be warned that the author may not have intended to support it.
onTimeout
void onTimeout(OnSocketTimeout onTimeout)
Undocumented in source. Be warned that the author may not have intended to support it.
onWritable
void onWritable(OnSocketWritable onWritable)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

ssl
enum ssl;
Undocumented in source.

Properties

data
ref data [@property getter]
Undocumented in source.
handle
handle [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
loop
loop [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Socket
struct Socket
Undocumented in source.

Variables

extSize
enum int extSize;
Undocumented in source.

Meta