(
self,
loop: asyncio.AbstractEventLoop,
host: str,
port: int,
ssl_context: ssl_module.SSLContext,
ssl_is_advisory: bool,
)
| 927 | |
| 928 | class TLSUpgradeProto(asyncio.Protocol): |
| 929 | def __init__( |
| 930 | self, |
| 931 | loop: asyncio.AbstractEventLoop, |
| 932 | host: str, |
| 933 | port: int, |
| 934 | ssl_context: ssl_module.SSLContext, |
| 935 | ssl_is_advisory: bool, |
| 936 | ) -> None: |
| 937 | self.on_data = _create_future(loop) |
| 938 | self.host = host |
| 939 | self.port = port |
| 940 | self.ssl_context = ssl_context |
| 941 | self.ssl_is_advisory = ssl_is_advisory |
| 942 | |
| 943 | def data_received(self, data: bytes) -> None: |
| 944 | if self.on_data.done(): |
nothing calls this directly
no test coverage detected