◆ __init__()
| hostile_server_test.FakeServer.__init__ |
( |
| self | ) |
|
◆ close()
| hostile_server_test.FakeServer.close |
( |
| self | ) |
|
◆ poll()
| hostile_server_test.FakeServer.poll |
( |
| self | ) |
|
Answers the handshake; True once the client is connected.
◆ raw()
| hostile_server_test.FakeServer.raw |
( |
| self, |
|
|
| data ) |
◆ send()
| hostile_server_test.FakeServer.send |
( |
| self, |
|
|
| payload ) |
One message: the sequence, the reliable acknowledge, then the
payload compressed and XORed. The client's command slot 0 is empty, so
the XOR's string is empty too.
◆ addr
| hostile_server_test.FakeServer.addr = None |
◆ connect_reply
| hostile_server_test.FakeServer.connect_reply = b'connectResponse' |
◆ connected
| bool hostile_server_test.FakeServer.connected = False |
◆ port
| hostile_server_test.FakeServer.port = self.sock.getsockname()[1] |
◆ sequence
| int hostile_server_test.FakeServer.sequence = 0 |
◆ sock
| hostile_server_test.FakeServer.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) |
◆ userinfo
| str hostile_server_test.FakeServer.userinfo = b'' |
The documentation for this class was generated from the following file: