(self, data)
| 65 | self.auth_result = False |
| 66 | |
| 67 | def write(self, data): |
| 68 | assert self.sock |
| 69 | data_len = len(data) |
| 70 | total_sent = 0 |
| 71 | while total_sent < data_len: |
| 72 | sent = self.sock.send(data[total_sent:]) |
| 73 | if sent == 0: |
| 74 | raise NotConnectedError('Server disconnected') |
| 75 | total_sent = total_sent + sent |
| 76 | |
| 77 | # |
| 78 | # Support for "with" context |
nothing calls this directly
no test coverage detected