3.0.ipv8.test.mocking.community

Attributes

Classes

Module Contents

3.0.ipv8.test.mocking.community.DEFAULT_COMMUNITY_SETTINGS
class 3.0.ipv8.test.mocking.community.MockCommunity(settings: 3.0.ipv8.community.CommunitySettings = DEFAULT_COMMUNITY_SETTINGS)

Bases: 3.0.ipv8.peerdiscovery.community.DiscoveryCommunity

Semi-inert version of the DiscoveryCommunity for testing.

_use_main_thread = False
my_estimated_lan

Estimate our LAN address and port.

If the endpoint is closed this returns (“::1”, 0) for IPv6 and (“0.0.0.0”, 0) otherwise. If the endpoint is open and we have no idea what our address is, attempt to estimate it. Otherwise, return the current value of the estimated LAN address and port.

my_estimated_wan