def initiate_meta_messages(self): return super(SearchCommunity, self).initiate_meta_messages() + [ Message(self, u"search-request", MemberAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), SearchRequestPayload(), self._generic_timeline_check, self.on_search), Message(self, u"search-response", MemberAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), SearchResponsePayload(), self._generic_timeline_check, self.on_search_response), Message(self, u"torrent-request", MemberAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), TorrentRequestPayload(), self._generic_timeline_check, self.on_torrent_request), Message(self, u"torrent-collect-request", MemberAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), TorrentCollectRequestPayload(), self._generic_timeline_check, self.on_torrent_collect_request), Message(self, u"torrent-collect-response", MemberAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), TorrentCollectResponsePayload(), self._generic_timeline_check, self.on_torrent_collect_response), Message( self, u"torrent", MemberAuthentication(), PublicResolution(), FullSyncDistribution(enable_sequence_number=False, synchronization_direction=u"ASC", priority=128), CommunityDestination(node_count=0), TorrentPayload(), self._generic_timeline_check, self.on_torrent), ]
def initiate_meta_messages(self): return super(DemersTest, self).initiate_meta_messages() + [ Message( self, u"text", MemberAuthentication(), PublicResolution(), FullSyncDistribution(enable_sequence_number=False, synchronization_direction=u"DESC", priority=128), CommunityDestination(node_count=10), TextPayload(), self.check_text, self.on_text) ]
def initiate_meta_messages(self): return super(TemplateCommunity, self).initiate_meta_messages() + [ Message(self, u"text", MemberAuthentication(), LinearResolution(), FullSyncDistribution(enable_sequence_number=False, synchronization_direction=u"ASC", priority=128), CommunityDestination(node_count=10), TextPayload(), self.check_text, self.on_text, batch=BatchConfiguration(max_window=5.0)) ]
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"barter-record", MultiMemberAuthentication(count=2, allow_signature_func=self.allow_signature_request), PublicResolution(), LastSyncDistribution(synchronization_direction=u"out-order", history_size=1), CommunityDestination(node_count=10), BarterRecordPayload(), self.check_barter_record, self.on_barter_record)] return [Message(self, u"barter-record", MultiMemberAuthentication(count=2, allow_signature_func=self.allow_signature_request), PublicResolution(), FullSyncDistribution(enable_sequence_number=False, synchronization_direction=u"out-order"), CommunityDestination(node_count=10), BarterRecordPayload(), self.check_barter_record, self.on_barter_record)]