(self, username, password)
| 599 | """An example implementation of authentication via handshake.""" |
| 600 | |
| 601 | def __init__(self, username, password): |
| 602 | super().__init__() |
| 603 | self.username = username |
| 604 | self.password = password |
| 605 | self.token = b'' |
| 606 | |
| 607 | def authenticate(self, outgoing, incoming): |
| 608 | outgoing.write(self.username) |