vibe.d beta banner
get vibe.d
0.8.5

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

Function EventDriverSockets.write

Reads data from a stream socket.

abstract void write (
  StreamSocketFD socket,
  const(ubyte)[] buffer,
  IOMode mode,
  nothrow @safe void delegate(StreamSocketFD, IOStatus, ulong) on_write_finish
) nothrow @safe;

Note that only a single write operation is allowed at once. The caller needs to make sure that either on_write_finish got called, or cancelWrite was called before issuing the next call to write. However, concurrent reads are legal.

Authors
Copyright
License