Am 27.03.2015 um 15:30 schrieb Shammah Chancellor:
Ah the MQTT Broker thing is helpful. I think I was making it more
complicated than needed to be. I was thinking that in the vibe-d
examples that listenTCP triggered the event loop somehow, but I suppose
that's done in main().-Shammah
Yes, exactly. There is a default main()
implementation in
source/vibe/appmain.d that is used for most examples (by defining the VibeDefaultMain
). listenTCP
just starts listening and registers a
callback that is later called by the event loop. It doesn't block
execution and doesn't start any event processing by itself.