0

The title pretty much explains it;

Is it possible? I want to create a master-backup relationship where if the master fails, the backup takes over, becomes the master and creates its own backup and keeps running. I'm using listenMulticast to broadcast so far.

I want a behavior where I print increasing numbers in the terminal for learning purposes. If I send some sort of a interrupt signal, the master should be destroyed but from above, the relationship is re-created and the numbers keeps printing. For this purpose, I don't care if a numbers is skipped, I'm simply after the structure.

Thanks.

4

1 回答 1

0

reactor.listenMulticast返回一个IListeningPort. IListeningPort.stopListening停止端口监听。 IListeningPort.startListening再次开始在同一地址监听。

您可以随时拨打listenMulticaststopListeningstartListening

于 2014-02-12T11:37:22.547 回答