UnbufferedSocketStreamBase.write

Writes data to the socket.

  1. size_t write(ubyte[] data)
    struct UnbufferedSocketStreamBase
    @safe
    size_t
    write
    (
    in ubyte[] data
    )
  2. alias put = write

Parameters

data ubyte[]

The data to write to the file. The length of the slice indicates how much data should be written.

Return Value

Type: size_t

The number of bytes that were written.

Throws

SocketException on failure.

Meta