vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Struct TCPConnection

Represents a single TCP connection.

struct TCPConnection ;

Properties

NameTypeDescription
connected[get] bool
dataAvailableForRead[get] bool
empty[get] bool
fd[get] int
keepAlive[set] bool
keepAlive[get] bool
leastSize[get] ulong
localAddress[get] NetworkAddress
peerAddress[get] string
readTimeout[set] core.time.Duration
readTimeout[get] core.time.Duration
remoteAddress[get] NetworkAddress
tcpNoDelay[set] bool
tcpNoDelay[get] bool

Methods

NameDescription
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

NameDescription
Context
Authors

Sönke Ludwig

Copyright

© 2012-2016 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.