TSocketBase.writeSome

Writes as much data to the socket as there can be in a single OS call.

class TSocketBase
abstract
size_t
writeSome
(
in ubyte[] buf
)
out (written) { version (none) assert (written <= buf.length, text("Implementation wrote " ~ "more data than requested to?! (", written, " vs. ", buf.length, ")")); }

Parameters

buf ubyte[]

Data to write.

Return Value

Type: size_t

The actual number of bytes written. Never more than buf.length.

Meta