def initiate_meta_messages(self): return [Message(self, u"effort-record", DoubleMemberAuthentication(allow_signature_func=self.allow_signature_request, encoding="bin"), PublicResolution(), LastSyncDistribution(synchronization_direction=u"DESC", priority=128, history_size=1), CommunityDestination(node_count=10), EffortRecordPayload(), self.check_effort_record, self.on_effort_record, batch=BatchConfiguration(max_window=4.5)), Message(self, u"ping", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), PingPayload(), self.check_ping, self.on_ping), Message(self, u"pong", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), PongPayload(), self.check_pong, self.on_pong), Message(self, u"debug-request", MemberAuthentication(), LinearResolution(), DirectDistribution(), CommunityDestination(node_count=32), DebugRequestPayload(), self.check_debug_request, self.on_debug_request), Message(self, u"debug-response", MemberAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), DebugResponsePayload(), self.check_debug_response, self.on_debug_response)]
def initiate_meta_messages(self): return super(HiddenTunnelCommunity, self).initiate_meta_messages() + \ [Message(self, u"dht-request", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), DHTRequestPayload(), self._generic_timeline_check, self.on_dht_request), Message(self, u"dht-response", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), DHTResponsePayload(), self.check_dht_response, self.on_dht_response), Message(self, u"key-request", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), KeyRequestPayload(), self.check_key_request, self.on_key_request), Message(self, u"key-response", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), KeyResponsePayload(), self.check_key_response, self.on_key_response), Message(self, u"create-e2e", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), CreateE2EPayload(), self.check_key_request, self.on_create_e2e), Message(self, u"created-e2e", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), CreatedE2EPayload(), self.check_created_e2e, self.on_created_e2e), Message(self, u"link-e2e", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), LinkE2EPayload(), self.check_link_e2e, self.on_link_e2e), Message(self, u"linked-e2e", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), LinkedE2EPayload(), self.check_linked_e2e, self.on_linked_e2e), Message(self, u"establish-intro", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), EstablishIntroPayload(), self.check_establish_intro, self.on_establish_intro), Message(self, u"intro-established", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), IntroEstablishedPayload(), self.check_intro_established, self.on_intro_established), Message(self, u"establish-rendezvous", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), EstablishRendezvousPayload(), self.check_establish_rendezvous, self.on_establish_rendezvous), Message(self, u"rendezvous-established", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), RendezvousEstablishedPayload(), self.check_rendezvous_established, self.on_rendezvous_established)]
def initiate_meta_messages(self): batch_delay = 1.0 return [Message(self, u"channelcast", MemberAuthentication(encoding="sha1"), PublicResolution(), DirectDistribution(), CandidateDestination(), ChannelCastPayload(), self.check_channelcast, self.on_channelcast), Message(self, u"channelcast-request", MemberAuthentication(encoding="sha1"), PublicResolution(), DirectDistribution(), CandidateDestination(), ChannelCastRequestPayload(), self.check_channelcast_request, self.on_channelcast_request), Message(self, u"channelsearch", MemberAuthentication(encoding="sha1"), PublicResolution(), DirectDistribution(), CommunityDestination(node_count=10), ChannelSearchPayload(), self.check_channelsearch, self.on_channelsearch), Message(self, u"channelsearch-response", MemberAuthentication(encoding="sha1"), PublicResolution(), DirectDistribution(), CandidateDestination(), ChannelSearchResponsePayload(), self.check_channelsearch_response, self.on_channelsearch_response), Message(self, u"votecast", MemberAuthentication(encoding="sha1"), PublicResolution(), FullSyncDistribution(enable_sequence_number=False, synchronization_direction=u"DESC", priority=128), CommunityDestination(node_count=10), VoteCastPayload(), self.check_votecast, self.on_votecast, self.undo_votecast, batch=BatchConfiguration(max_window=batch_delay)) ]
def initiate_meta_messages(self): return [Message(self, u"search-request", MemberAuthentication(encoding="sha1"), PublicResolution(), DirectDistribution(), CandidateDestination(), SearchRequestPayload(), self.check_search, self.on_search), Message(self, u"search-response", MemberAuthentication(encoding="sha1"), PublicResolution(), DirectDistribution(), CandidateDestination(), SearchResponsePayload(), self.check_search_response, self.on_search_response), Message(self, u"torrent-request", MemberAuthentication(encoding="sha1"), PublicResolution(), DirectDistribution(), CandidateDestination(), TorrentRequestPayload(), self.check_torrent_request, self.on_torrent_request), Message(self, u"torrent-collect-request", MemberAuthentication(encoding="sha1"), PublicResolution(), DirectDistribution(), CandidateDestination(), TorrentCollectRequestPayload(), self.check_torrent_collect_request, self.on_torrent_collect_request), Message(self, u"torrent-collect-response", MemberAuthentication(encoding="sha1"), PublicResolution(), DirectDistribution(), CandidateDestination(), TorrentCollectResponsePayload(), self.check_torrent_collect_response, self.on_torrent_collect_response), Message(self, u"torrent", MemberAuthentication(encoding="sha1"), PublicResolution(), FullSyncDistribution(enable_sequence_number=False, synchronization_direction=u"ASC", priority=128), CommunityDestination(node_count=0), TorrentPayload(), self.check_torrent, self.on_torrent), ]