Skip to content
client.pyi 576 B
Newer Older
Dom Sekotill's avatar
Dom Sekotill committed
from rcon.client import BaseClient
from rcon.source.proto import Packet

__all__ = ["Client"]


class Client(BaseClient):

	def __init__(
		self,
		host: str,
		port: int, *,
		timeout: float|None = None,
		passwd: str|None = None,
		frag_threshold: int = ...,
		frag_detect_cmd: str = ...,
	) -> None: ...

	def communicate(self, packet: Packet) -> Packet: ...
	def send(self, packet: Packet) -> None: ...
	def read(self) -> Packet: ...
	def login(self, passwd: str, *, encoding: str = ...) -> bool: ...
	def run(self, command: str, *_: str, encoding: str = ...) -> str: ...