File: message.py

package info (click to toggle)
python-aioice 0.10.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 424 kB
  • sloc: python: 3,832; makefile: 20; sh: 1
file content (26 lines) | stat: -rw-r--r-- 455 bytes parent folder | download
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
from typing import Optional, Union

from .name import Name
from .rrset import RRset


class Message:
    id: int
    flags: int
    answer: list[RRset]
    question: list[RRset]

    def __init__(self, id: Optional[int] = None) -> None: ...

    def to_wire(self) -> bytes: ...

    ...


class QueryMessage(Message): ...


def from_wire(wire: bytes) -> Message: ...


def make_query(qname: Union[Name, str], rdtype: Union[int, str]) -> QueryMessage: ...