Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/zeroconf/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ def handle_assembled_query(
addr: str,
port: int,
transport: _WrappedTransport,
v6_flow_scope: Union[Tuple[()], Tuple[int, int]] = (),
v6_flow_scope: Union[Tuple[()], Tuple[int, int]],
) -> None:
"""Respond to a (re)assembled query.

Expand Down
10 changes: 10 additions & 0 deletions src/zeroconf/_listener.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ cdef class AsyncListener:

cdef _cancel_any_timers_for_addr(self, object addr)

@cython.locals(incoming=DNSIncoming, deferred=list)
cpdef handle_query_or_defer(
self,
DNSIncoming msg,
Expand All @@ -45,3 +46,12 @@ cdef class AsyncListener:
object transport,
tuple v6_flow_scope
)

cpdef _respond_query(
self,
object msg,
object addr,
object port,
object transport,
tuple v6_flow_scope
)
2 changes: 1 addition & 1 deletion src/zeroconf/_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def _respond_query(
addr: _str,
port: _int,
transport: _WrappedTransport,
v6_flow_scope: Union[Tuple[()], Tuple[int, int]] = (),
v6_flow_scope: Union[Tuple[()], Tuple[int, int]],
) -> None:
"""Respond to a query and reassemble any truncated deferred packets."""
self._cancel_any_timers_for_addr(addr)
Expand Down