sshmitm.plugins.session.tcpserver module

class sshmitm.plugins.session.tcpserver.TCPServerThread(request_handler: Optional[Callable[[Tuple[str, int], Union[socket, Channel], Tuple[str, int]], None]] = None, network: str = '', port: int = 0, run_status: bool = True, daemon: bool = False)

Bases: Thread

close() None
handle_request(client: Union[socket, Channel], addr: Tuple[str, int]) None
run() None

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.