usenetbinary-newsreaderqnaptautullifanartsickbeardtvseriesplexswizzinembyseedboxtvdbnzbgetsubtitlewebuiquickboxtraktkodistabletvshows
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
1.1 KiB
21 lines
1.1 KiB
# Stubs for tornado_py3.tcpserver (Python 3)
|
|
#
|
|
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
|
|
|
import socket
|
|
import ssl
|
|
from tornado_py3.iostream import IOStream
|
|
from typing import Any, Awaitable, Dict, Iterable, Optional, Union
|
|
|
|
class TCPServer:
|
|
ssl_options: Any = ...
|
|
max_buffer_size: Any = ...
|
|
read_chunk_size: Any = ...
|
|
def __init__(self, ssl_options: Optional[Union[Dict[str, Any], ssl.SSLContext]]=..., max_buffer_size: Optional[int]=..., read_chunk_size: Optional[int]=...) -> None: ...
|
|
def listen(self, port: int, address: str=...) -> None: ...
|
|
def add_sockets(self, sockets: Iterable[socket.socket]) -> None: ...
|
|
def add_socket(self, socket: socket.socket) -> None: ...
|
|
def bind(self, port: int, address: Optional[str]=..., family: socket.AddressFamily=..., backlog: int=..., reuse_port: bool=...) -> None: ...
|
|
def start(self, num_processes: Optional[int]=..., max_restarts: Optional[int]=...) -> None: ...
|
|
def stop(self) -> None: ...
|
|
def handle_stream(self, stream: IOStream, address: tuple) -> Optional[Awaitable[None]]: ...
|
|
|