Libevent2TCPConnection

Undocumented in source.

Constructors

this
this(TCPContext* ctx)
Undocumented in source.

Members

Aliases

write
alias write = Stream.write
Undocumented in source.

Functions

close
void close()

Closes the connection.

finalize
void finalize()
Undocumented in source. Be warned that the author may not have intended to support it.
flush
void flush()

Causes any buffered data to be written.

peek
const(ubyte)[] peek()
Undocumented in source. Be warned that the author may not have intended to support it.
read
size_t read(ubyte[] dst, IOMode )

Reads as many bytes as 'dst' can hold.

skip
void skip(ulong count)
Undocumented in source. Be warned that the author may not have intended to support it.
waitForData
bool waitForData(Duration timeout)
Undocumented in source. Be warned that the author may not have intended to support it.
write
size_t write(ubyte[] bytes, IOMode )

Writes the given byte array.

Properties

connected
bool connected [@property getter]

The 'connected' status of this connection

dataAvailableForRead
bool dataAvailableForRead [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
empty
bool empty [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
keepAlive
bool keepAlive [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
keepAlive
bool keepAlive [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
leastSize
ulong leastSize [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
localAddress
NetworkAddress localAddress [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
peerAddress
string peerAddress [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
readTimeout
Duration readTimeout [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
readTimeout
Duration readTimeout [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
remoteAddress
NetworkAddress remoteAddress [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
tcpNoDelay
bool tcpNoDelay [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
tcpNoDelay
bool tcpNoDelay [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta