Files @ 5acdf209394d
Branch filter:

Location: light9/stubs/twisted/internet/interfaces.pyi

Drew Perttula
start live stats displayer on home page
Ignore-this: e28bc66c441cb72c41aff1bd8d0bf55e
from typing import Any

class IDelayedCall:
    def getTime(self) -> Any: ...
    def cancel(self) -> None: ...
    def delay(self, secondsLater: Any) -> None: ...
    def reset(self, secondsFromNow: Any) -> None: ...
    def active(self) -> None: ...


class IAddress:  # this is https://twistedmatrix.com/documents/current/api/twisted.internet.address.IPv4Address.html
    type: str
    host: str
    port: int   
    
class IListeningPort:
    def startListening(self): ...
    def stopListening(self): ... # returns deferred
    def getHost(self) -> IAddress: ...
    _realPortNumber: int # from t.i.tcp.Port