|
@ -44,7 +44,7 @@ class Client(BaseClient, socket_type=SOCK_DGRAM): |
|
|
"""Receives a packet.""" |
|
|
"""Receives a packet.""" |
|
|
return RESPONSE_TYPES[ |
|
|
return RESPONSE_TYPES[ |
|
|
(header := Header.from_bytes( |
|
|
(header := Header.from_bytes( |
|
|
data := self._socket.recv(max_length)[:8] |
|
|
(data := self._socket.recv(max_length))[:8] |
|
|
)).type |
|
|
)).type |
|
|
].from_bytes(header, data[8:]) |
|
|
].from_bytes(header, data[8:]) |
|
|
|
|
|
|
|
|