DITBusDelegate
@protocol DITBusDelegate <NSObject>
Callbacks relating to Ditto Bus for both receiving single messages and accepting incoming streams.
-
A bus message has been received from another peer in the mesh.
Declaration
Objective-C
- (void)ditBus:(DITBus *)bus didReceiveSingleMessage:(DITBusMessage *)message;
-
Another peer has opened a stream to this device. Set its delegate immediately.
Declaration
Objective-C
- (void)ditBus:(DITBus *)bus didReceiveIncomingStream:(DITBusStream *)busStream fromPeer:(DITAddress *)peer;