Protocol

class Defaults(buffer_size: int = 8192, timeout: float = 2, peer_handlers: Dict[str, Callable] = <factory>, connection_handlers: Dict[str, Callable] = <factory>)

Bases: object

buffer_size = 8192
timeout = 2
class Headers(size: int = 128, separator: str = '|', values_separator: str = '&', key_separator: str = '=', data_header: str = 'DATA', hello_header: str = 'HELLO', accept_header: str = 'ACCEPT', deny_header: str = 'DENY', ping_header: str = 'PING', pong_header: str = 'PONG', data_types_parsers: Dict[str, Callable] = <factory>, required_hello_fields: List[str] = <factory>, required_data_fields: List[str] = <factory>)

Bases: object

accept_header = 'ACCEPT'
data_header = 'DATA'
deny_header = 'DENY'
hello_header = 'HELLO'
key_separator = '='
ping_header = 'PING'
pong_header = 'PONG'
separator = '|'
size = 128
values_separator = '&'