Next: , Previous: , Up: Interacting directly with other Peers using the CORE Service   [Contents]

4.5.2 Receiving P2P Messages

To receive messages from CORE, you pass the desired handlers to the GNUNET\_CORE\_connect() function, 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?