(
self,
loop: asyncio.AbstractEventLoop,
host: str,
port: int,
ssl_context: ssl_module.SSLContext,
ssl_is_advisory: bool,
)
| 910 | |
| 911 | class TLSUpgradeProto(asyncio.Protocol): |
| 912 | def __init__( |
| 913 | self, |
| 914 | loop: asyncio.AbstractEventLoop, |
| 915 | host: str, |
| 916 | port: int, |
| 917 | ssl_context: ssl_module.SSLContext, |
| 918 | ssl_is_advisory: bool, |
| 919 | ) -> None: |
| 920 | self.on_data = _create_future(loop) |
| 921 | self.host = host |
| 922 | self.port = port |
| 923 | self.ssl_context = ssl_context |
| 924 | self.ssl_is_advisory = ssl_is_advisory |
| 925 | |
| 926 | def data_received(self, data: bytes) -> None: |
| 927 | if data == b'S': |
nothing calls this directly
no test coverage detected