Inter-App Communication
This section describes how a custom subprotocol can be implemented for allowing communication between different applications.
To implement a custom subprotocol, this library provides the ITalkReqAndRespHandler
interface that can be inherited into a class containing custom logic. This class can handle application-specific subprotocols using TALKREQ
and TALKRESP
messages. Here is an example of this:
An instance of CustomHandler
can then be passed as a parameter to the CreateDefault
method:
Alternatively, if Discv5Builder
is used, then the instance of CustomHandler
can be passed to it using:
Last updated