-
Notifications
You must be signed in to change notification settings - Fork 219
/
record_manager.pxd
43 lines (30 loc) · 1.15 KB
/
record_manager.pxd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import cython
from .._cache cimport DNSCache
from .._dns cimport DNSQuestion, DNSRecord
from .._protocol.incoming cimport DNSIncoming
from .._updates cimport RecordUpdateListener
from .._utils.time cimport current_time_millis
cdef cython.float _DNS_PTR_MIN_TTL
cdef cython.uint _TYPE_PTR
cdef object _ADDRESS_RECORD_TYPES
cdef object RecordUpdate
cdef bint TYPE_CHECKING
cdef object _TYPE_PTR
cdef class RecordManager:
cdef public object zc
cdef public DNSCache cache
cdef public cython.set listeners
cpdef async_updates(self, object now, object records)
cpdef async_updates_complete(self, object notify)
@cython.locals(
cache=DNSCache,
record=DNSRecord,
answers=cython.list,
maybe_entry=DNSRecord,
now_float=cython.float
)
cpdef async_updates_from_response(self, DNSIncoming msg)
cpdef async_add_listener(self, RecordUpdateListener listener, object question)
cpdef async_remove_listener(self, RecordUpdateListener listener)
@cython.locals(question=DNSQuestion, record=DNSRecord)
cdef _async_update_matching_records(self, RecordUpdateListener listener, cython.list questions)