FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-zeroconf/src/zeroconf/_history.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
/
_history.pxd
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (14 loc) · 811 Bytes
Breadcrumbs
python-zeroconf
/
src
/
zeroconf
/
_history.pxd
Copy path
File metadata and controls
23 lines (14 loc) · 811 Bytes
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
import
cython
from
._dns cimport DNSQuestion
cdef cython.double _DUPLICATE_QUESTION_INTERVAL
cdef
unsigned
int
_MAX_QUESTION_HISTORY_ENTRIES
cdef
unsigned
int
_MAX_KNOWN_ANSWERS_PER_HISTORY_ENTRY
cdef
class
QuestionHistory:
cdef public cython.dict _history
cpdef
void
add_question_at_time(
self
, DNSQuestion question,
double
now, cython.set known_answers)
@
cython.locals
(
oldest
=
DNSQuestion,
oldest_entry
=
cython.tuple,
oldest_than
=
double
)
cdef
void
_evict_to_make_room(
self
,
double
now)
@
cython.locals
(
than
=
double
,
previous_question
=
cython.tuple,
previous_known_answers
=
cython.set)
cpdef bint suppresses(
self
, DNSQuestion question,
double
now, cython.set known_answers)
@
cython.locals
(
than
=
double
,
now_known_answers
=
cython.tuple)
cpdef
void
async_expire(
self
,
double
now)
Back
|
FazBrowse Home
|
New Git URL