class documentation

class PktLineParser:

Constructor: PktLineParser(handle_pkt)

View In Hierarchy

Packet line parser that hands completed packets off to a callback.

Method __init__ Initialize PktLineParser.
Method get_tail Read back any unused data.
Method parse Parse a fragment of data and call back for any completed packets.
Instance Variable handle_pkt Undocumented
Instance Variable _readahead Undocumented
def __init__(self, handle_pkt: Callable[[(bytes | None)], None]):

Initialize PktLineParser.

Parameters
handle_pkt:Callable[[(bytes | None)], None]Callback function to handle completed packets
def get_tail(self) -> bytes:

Read back any unused data.

def parse(self, data: bytes):

Parse a fragment of data and call back for any completed packets.

handle_pkt =

Undocumented

_readahead =

Undocumented