(self, host: str, port: int)
| 13 | DELAY = 0.6 |
| 14 | |
| 15 | def __init__(self, host: str, port: int): |
| 16 | sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM) |
| 17 | txtf = sock.makefile('w') |
| 18 | |
| 19 | sock.connect((host, port)) |
| 20 | |
| 21 | self.__sock = sock |
| 22 | self.__file = txtf |
| 23 | |
| 24 | def __enter__(self): |
| 25 | return self |