3.0.ipv8.messaging.anonymization.endpoint ========================================= .. py:module:: 3.0.ipv8.messaging.anonymization.endpoint Classes ------- .. autoapisummary:: 3.0.ipv8.messaging.anonymization.endpoint.TunnelEndpoint Module Contents --------------- .. py:class:: TunnelEndpoint(endpoint: 3.0.ipv8.messaging.interfaces.endpoint.Endpoint) Endpoint implementation that routes all data through a TunnelCommunity. .. py:attribute:: endpoint .. py:attribute:: hops :value: 0 .. py:attribute:: tunnel_community :type: 3.0.ipv8.messaging.anonymization.community.TunnelCommunity | None :value: None .. py:attribute:: settings :type: dict[bytes, bool] .. py:attribute:: send_queue :type: collections.deque[tuple[3.0.ipv8.types.Address, bytes]] .. py:method:: set_tunnel_community(tunnel_community: 3.0.ipv8.messaging.anonymization.community.TunnelCommunity | None, hops: int = 1) -> None Configure this endpoint to create tunnels of a given number of hops over the given community. .. py:method:: set_anonymity(prefix: bytes, enable: bool) -> None Enable or disable tunneling for the given community id. .. py:method:: send(address: 3.0.ipv8.types.Address, packet: bytes) -> None Send the given packet to a certain address. .. py:method:: notify_listeners(packet: tuple[3.0.ipv8.types.Address, bytes], from_tunnel: bool = False) -> None Ensure packets are only delivered if they follow they are properly encrypted. .. py:method:: __getattribute__(item: str) -> Any Forward anything that is not inside of this class to our wrapped endpoint.