DittoBusStreamDelegate
Callbacks required to use the Ditto Bus API with explicit stream handles.
-
The operation to enqueue outgoing data on a stream has completed. More data may now be enqueued.
The message sequence number may be used to track when the remote side has fully acknowledged receipt.
error
will be non-nil if the operation failed. -
The stream has closed. This can be triggered by calling
close()
or by the remote peer doing the same. -
A new message has been received from the specified stream.
-
The remote peer has acknowledged receipt of all messages up to the given sequence number.