DuplexChannel.this

readLine returns the next inbound line (without terminator) or null at EOF (and the read loop ends). writeLine emits one outbound line. onInbound is invoked for every inbound request / notification line (never for a response, which the channel correlates itself).

  1. this(string delegate() @(safe) readLine, void delegate(string) @(safe) writeLine, void delegate(Message) @(safe) onInbound)
    class DuplexChannel
    @safe
    this
    (
    string delegate
    ()
    @safe
    readLine
    ,
    void delegate
    (
    string
    )
    @safe
    writeLine
    ,
    void delegate @safe onInbound
    )
  2. this(string delegate() @(safe) readLine, void delegate(string) @(safe) writeLine, void delegate(Message) @(safe) onInbound, void delegate(string) @(safe) onInboundBatch)