dhcpkit.ipv6.server.listeners package¶
Code to keep the receiving and sending sockets together. When receiving traffic on a link-local multicast address the reply should be sent from a link-local address on the receiving interface. This class makes it easy to keep those together.
-
exception
dhcpkit.ipv6.server.listeners.ClosedListener[source]¶ Bases:
dhcpkit.ipv6.server.listeners.ListeningSocketErrorSignal that the socket isn’t done receiving yet
-
exception
dhcpkit.ipv6.server.listeners.IgnoreMessage[source]¶ Bases:
dhcpkit.ipv6.server.listeners.ListeningSocketErrorSignal that this message should be ignored
-
class
dhcpkit.ipv6.server.listeners.IncomingPacketBundle(*, message_id: str = '??????', data: bytes = b'', source_address: ipaddress.IPv6Address = None, link_address: ipaddress.IPv6Address = None, interface_index: int = -1, received_over_multicast: bool = False, received_over_tcp: bool = False, marks: Iterable = None, relay_options: Iterable = None)[source]¶ Bases:
objectA class that is very efficient to pickle because this is what will be sent to worker processes.
Using a class instead of a namedtuple makes it easier to extend it in the future. To make this possible all properties should have a default value, and the constructor must be called with keyword arguments only.
-
exception
dhcpkit.ipv6.server.listeners.IncompleteMessage[source]¶ Bases:
dhcpkit.ipv6.server.listeners.IgnoreMessageSignal that the socket isn’t done receiving yet
-
class
dhcpkit.ipv6.server.listeners.Listener[source]¶ Bases:
objectA class to represent something listening for incoming requests.
-
class
dhcpkit.ipv6.server.listeners.ListenerCreator[source]¶ Bases:
objectA class to represent something that creates something to listen for incoming requests.
-
exception
dhcpkit.ipv6.server.listeners.ListenerError[source]¶ Bases:
ExceptionBase class for listener errors
-
exception
dhcpkit.ipv6.server.listeners.ListeningSocketError[source]¶ Bases:
dhcpkit.ipv6.server.listeners.ListenerErrorSignal that the listening socket could not be created.
-
class
dhcpkit.ipv6.server.listeners.Replier[source]¶ Bases:
objectA class to send replies to the client
-
can_send_multiple= False¶
-