latest.ipv8.bootstrapping.udpbroadcast.bootstrapper
Module Contents
Classes
Endpoint that opens a broadcast socket. |
|
Bootstrapper that finds peers by iterating over ALL 65k ports of the local broadcast address. |
Attributes
- latest.ipv8.bootstrapping.udpbroadcast.bootstrapper.PROTOCOL_VERSION = b'\x00\x00'
- latest.ipv8.bootstrapping.udpbroadcast.bootstrapper.MAGIC = b'IPv8'
- latest.ipv8.bootstrapping.udpbroadcast.bootstrapper.HDR_ANNOUNCE
- class latest.ipv8.bootstrapping.udpbroadcast.bootstrapper.BroadcastBootstrapEndpoint(overlay: latest.ipv8.types.Community)
Bases:
asyncio.DatagramProtocol
Endpoint that opens a broadcast socket.
- send(socket_address: latest.ipv8.types.Address, data: bytes) None
Attempt to send data to the given socket address and silently fail.
- class latest.ipv8.bootstrapping.udpbroadcast.bootstrapper.UDPBroadcastBootstrapper(bootstrap_timeout: float = 30.0)
Bases:
latest.ipv8.bootstrapping.bootstrapper_interface.Bootstrapper
Bootstrapper that finds peers by iterating over ALL 65k ports of the local broadcast address.
- async initialize(overlay: latest.ipv8.types.Community) bool
Initialize this bootstrapper for the given overlay.
- async get_addresses(overlay: latest.ipv8.types.Community, timeout: float) Iterable[latest.ipv8.types.Address]
Attempt to find addresses. This method will never return addresses immediately.
- blacklist() Iterable[latest.ipv8.types.Address]
Get the blacklisted addresses.