mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +01:00
fix length byte
This commit is contained in:
parent
4583b5d88d
commit
6787fe1406
1 changed files with 2 additions and 2 deletions
|
@ -46,9 +46,9 @@ def query(req, ids):
|
||||||
sock.settimeout(5) # seconds
|
sock.settimeout(5) # seconds
|
||||||
sock.connect(('127.0.0.1', 10998))
|
sock.connect(('127.0.0.1', 10998))
|
||||||
|
|
||||||
lenShort = 2 + idsLen + len(ids) + 1
|
lenShort = 2 + idsLen + len(ids) + 2
|
||||||
print(lenShort, PROTOCOL_VERSION, PRX_GET_MSGS, len(ids))
|
print(lenShort, PROTOCOL_VERSION, PRX_GET_MSGS, len(ids))
|
||||||
header = struct.Struct("!hBBh")
|
header = struct.Struct('!hBBh')
|
||||||
assert header.size == 6
|
assert header.size == 6
|
||||||
sock.send(header.pack(lenShort, PROTOCOL_VERSION, PRX_GET_MSGS, len(ids)))
|
sock.send(header.pack(lenShort, PROTOCOL_VERSION, PRX_GET_MSGS, len(ids)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue