Commit cb1d1ca6 authored by thomas alfroy's avatar thomas alfroy
Browse files

close issue 5

parent db59d530
......@@ -69,11 +69,11 @@ def parse_new_messages(msg):
print("Flux ID : {}".format(flux))
t = msg[1]
parse_type(t)
nchars = 1
nchars = 2
# string to int or long. Type depends on nchars
seq = sum((msg[byte + 2])<<8*(nchars-byte-1) for byte in range(nchars))
print("SeqNum : {}".format(seq))
nchars = 1
nchars = 2
# string to int or long. Type depends on nchars
ack_seq = sum((msg[byte + 4])<<8*(nchars-byte-1) for byte in range(nchars))
print("Ack seq Num : {}".format(ack_seq))
......@@ -90,11 +90,11 @@ def parse_new_messages_server(msg):
print("Flux ID : {}".format(flux))
t = msg[1]
parse_type(t)
nchars = 1
nchars = 2
# string to int or long. Type depends on nchars
seq = sum((msg[byte + 2])<<8*(nchars-byte-1) for byte in range(nchars))
print("SeqNum : {}".format(seq))
nchars = 1
nchars = 2
# string to int or long. Type depends on nchars
ack_seq = sum((msg[byte + 4])<<8*(nchars-byte-1) for byte in range(nchars))
print("Ack seq Num : {}".format(ack_seq))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment