Initiating Flow
InitiatingFlow marks a flow as initiating, meaning that it starts a ResponderFlow when creating a session with another network entity.
Any flows that participate in flow sessions must declare a protocol name, using protocol and protocol. The platform will use the protocol name to establish what ResponderFlow to invoke on the responder side when the initiator side creates a session.
For example, to set up an initiator-responder pair, declare the following:
= "myprotocol")
class MyFlowInitiator : Flow {
...
}
= "myprotocol")
class MyFlowResponder : ResponderFlow {
...
}
Content copied to clipboard