vibe.d beta banner
get vibe.d
0.7.30

Function pipeRealtime

Pipes a stream to another while keeping the latency within the specified threshold.

Prototype

void pipeRealtime(
  OutputStream destination,
  ConnectionStream source,
  ulong nbytes = 0LU,
  core.time.Duration max_latency = dur(0L)
);

Parameters

NameDescription
destination The destination stram to pipe into
source The source stream to read data from
nbytes Number of bytes to pipe through. The default of zero means to pipe the whole input stream.
max_latency The maximum time before data is flushed to destination. The default value of 0 s will flush after each chunk of data read from source.

See also

OutputStream.write

Authors

Sönke Ludwig

Copyright

© 2012-2016 RejectedSoftware e.K.

License

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