Struct TCPConnection
Represents a single TCP connection.
struct TCPConnection
;
Properties
Name | Type | Description |
---|---|---|
connected [get]
|
bool | |
dataAvailableForRead [get]
|
bool | |
empty [get]
|
bool | |
keepAlive [set]
|
bool | |
keepAlive [get]
|
bool | |
leastSize [get]
|
ulong | |
localAddress [get]
|
NetworkAddress | |
peerAddress [get]
|
string | |
readTimeout [set]
|
core | |
readTimeout [get]
|
core | |
remoteAddress [get]
|
NetworkAddress | |
tcpNoDelay [set]
|
bool | |
tcpNoDelay [get]
|
bool |
Methods
Name | Description |
---|---|
close
()
|
|
finalize
()
|
|
flush
()
|
|
opCast
()
|
|
peek
()
|
|
read
(dst, mode)
|
|
read
(dst)
|
|
skip
(count)
|
|
waitForData
(timeout)
|
|
waitForDataAsync
(read_ready_callback, timeout)
|
Waits asynchronously for new data to arrive. |
waitForDataEx
(timeout)
|
|
write
(bytes, mode)
|
|
write
(bytes)
|
|
write
(bytes)
|
|
write
(stream)
|
|
write
(stream, nbytes)
|
Inner structs
Name | Description |
---|---|
Context
|