Next: Sending P2P Messages, Previous: New P2P connections, Up: Interacting directly with other Peers using the CORE Service [Contents]
To receive messages from
CORE, you pass the desired
handlers to the
just as we showed for services.
It is your responsibility to process messages fast enough or to implement flow control. If an application does not process CORE messages fast enough, CORE will randomly drop messages to not keep a very long queue in memory.
Exercise: Start one peer with a new service that has a message handler and start a second peer that only has your “old” service without message handlers. Which “connect” handlers are invoked when the two peers are connected? Why?