FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-zeroconf/src/zeroconf/_services/info.pxd at master · python-zeroconf/python-zeroconf · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
python-zeroconf
/
python-zeroconf
Public
Notifications
You must be signed in to change notification settings
Fork
230
Star
734
Code
Issues
46
Pull requests
8
Discussions
Actions
Projects
Wiki
Security and quality
5
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
python-zeroconf
/
src
/
zeroconf
/
_services
/
info.pxd
Copy path
More file actions
More file actions
Latest commit
History
History
History
195 lines (151 loc) · 5.64 KB
Breadcrumbs
python-zeroconf
/
src
/
zeroconf
/
_services
/
info.pxd
Copy path
File metadata and controls
195 lines (151 loc) · 5.64 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
import
cython
from
.._cache cimport DNSCache
from
.._dns cimport (
DNSAddress,
DNSNsec,
DNSPointer,
DNSQuestion,
DNSRecord,
DNSService,
DNSText,
)
from
.._history cimport QuestionHistory
from
.._protocol.outgoing cimport DNSOutgoing
from
.._record_update cimport RecordUpdate
from
.._updates cimport RecordUpdateListener
from
.._utils.ipaddress cimport (
get_ip_address_object_from_record,
ip_bytes_and_scope_to_address,
str_without_scope_id,
)
from
.._utils.time cimport current_time_millis
cdef cython.set _TYPE_AAAA_RECORDS
cdef cython.set _TYPE_A_RECORDS
cdef cython.set _TYPE_A_AAAA_RECORDS
cdef
object
_resolve_all_futures_to_none
cdef
object
_TYPE_SRV
cdef
object
_TYPE_TXT
cdef
object
_TYPE_A
cdef
object
_TYPE_AAAA
cdef
object
_TYPE_PTR
cdef
object
_TYPE_NSEC
cdef
object
_CLASS_IN
cdef
object
_FLAGS_QR_QUERY
cdef
object
service_type_name
cdef
object
QU_QUESTION
cdef
object
QM_QUESTION
cdef
object
_IPVersion_All_value
cdef
object
_IPVersion_V4Only_value
cdef
unsigned
int
_DUPLICATE_QUESTION_INTERVAL
cdef bint TYPE_CHECKING
cdef
object
cached_ip_addresses
cdef
object
randint
cdef
class
ServiceInfo(RecordUpdateListener):
cdef public cython.bytes text
cdef public
str
type
cdef
str
_name
cdef public
str
key
cdef public cython.list _ipv4_addresses
cdef public cython.list _ipv6_addresses
cdef public bint _ipv4_denied
cdef public bint _ipv6_denied
cdef public
object
port
cdef public
object
weight
cdef public
object
priority
cdef public
str
server
cdef public
str
server_key
cdef public cython.dict _properties
cdef public cython.dict _decoded_properties
cdef public
object
host_ttl
cdef public
object
other_ttl
cdef public
object
interface_index
cdef public cython.set _new_records_futures
cdef public DNSPointer _dns_pointer_cache
cdef public DNSService _dns_service_cache
cdef public DNSText _dns_text_cache
cdef public cython.list _dns_address_cache
cdef public DNSNsec _dns_address_nsec_cache
cdef public cython.set _get_address_and_nsec_records_cache
cdef public cython.set _query_record_types
cdef public bint _txt_seen
@
cython.locals
(
record_update
=
RecordUpdate,
record
=
DNSRecord,
nsec_records
=
list
)
cpdef
void
async_update_records(
self
,
object
zc,
double
now, cython.list records)
@
cython.locals
(
cache
=
DNSCache)
cpdef bint _load_from_cache(
self
,
object
zc,
double
now)
@
cython.locals
(
length
=
"
unsigned char
"
,
index
=
"
unsigned int
"
,
key_value
=
bytes,
key
=
bytes,
sep
=
bytes,
value
=
bytes,
)
cdef
void
_unpack_text_into_properties(
self
)
@
cython.locals
(
k
=
bytes,
v
=
bytes)
cdef
void
_generate_decoded_properties(
self
)
@
cython.locals
(
properties_contain_str
=
bint)
cpdef
void
_set_properties(
self
, cython.dict properties)
cdef
void
_set_text(
self
, cython.bytes text)
@
cython.locals
(
record
=
DNSAddress)
cdef _get_ip_addresses_from_cache_lifo(
self
,
object
zc,
double
now,
object
type
)
@
cython.locals
(
dns_service_record
=
DNSService,
dns_text_record
=
DNSText,
dns_address_record
=
DNSAddress,
dns_nsec_record
=
DNSNsec
)
cdef bint _process_record_threadsafe(
self
,
object
zc, DNSRecord record,
double
now)
@
cython.locals
(
cache
=
DNSCache)
cdef
void
_load_records_for_new_server_from_cache(
self
,
object
zc,
double
now)
@
cython.locals
(
rdtypes
=
cython.list,
updated
=
cython.bint,
ipv4_denied
=
cython.bint,
ipv6_denied
=
cython.bint,
)
cdef bint _process_nsec_record(
self
, DNSNsec record,
str
record_key)
@
cython.locals
(
existing_idx
=
int
,
existing
=
object
)
cdef bint _upsert_ipv6_address(
self
,
object
ip_addr)
@
cython.locals
(
cache
=
DNSCache)
cdef cython.list _get_address_records_from_cache_by_type(
self
,
object
zc,
object
_type)
cdef
void
_set_ipv4_addresses_from_cache(
self
,
object
zc,
double
now)
cdef
void
_set_ipv6_addresses_from_cache(
self
,
object
zc,
double
now)
cdef cython.list _ip_addresses_by_version_value(
self
,
object
version_value)
cpdef addresses_by_version(
self
,
object
version)
cpdef ip_addresses_by_version(
self
,
object
version)
@
cython.locals
(
cacheable
=
cython.bint)
cdef cython.list _dns_addresses(
self
,
object
override_ttls,
object
version)
@
cython.locals
(
cacheable
=
cython.bint)
cdef DNSPointer _dns_pointer(
self
,
object
override_ttl)
@
cython.locals
(
cacheable
=
cython.bint)
cdef DNSService _dns_service(
self
,
object
override_ttl)
@
cython.locals
(
cacheable
=
cython.bint)
cdef DNSText _dns_text(
self
,
object
override_ttl)
@
cython.locals
(
cacheable
=
cython.bint,
has_v4
=
cython.bint,
has_v6
=
cython.bint)
cdef DNSNsec _dns_address_nsec(
self
,
object
override_ttl)
@
cython.locals
(
cacheable
=
cython.bint)
cdef cython.set _get_address_and_nsec_records(
self
,
object
override_ttl)
cpdef
void
async_clear_cache(
self
)
@
cython.locals
(
cache
=
DNSCache,
history
=
QuestionHistory,
out
=
DNSOutgoing,
qu_question
=
bint)
cdef DNSOutgoing _generate_request_query(
self
,
object
zc,
double
now,
object
question_type)
@
cython.locals
(
question
=
DNSQuestion,
answer
=
DNSRecord)
cdef
void
_add_question_with_known_answers(
self
,
DNSOutgoing out,
bint qu_question,
QuestionHistory question_history,
DNSCache cache,
double
now,
str
name,
object
type_,
object
class_,
bint skip_if_known_answers
)
cdef
double
_get_initial_delay(
self
)
cdef
double
_get_random_delay(
self
)
cdef
class
AddressResolver(ServiceInfo):
pass
cdef
class
AddressResolverIPv6(ServiceInfo):
pass
cdef
class
AddressResolverIPv4(ServiceInfo):
pass
Back
|
FazBrowse Home
|
New Git URL