0
data = unpack('>L', sock.recv(4))

Does this line of code means, incoming data is big endian and so unpack to endianess of local machine and assign to data. If local machine is little endian, then big endian is automatically converted to little endian format?

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by jrcagle
0

The function "unpack" is not a built-in function. Does your code import some module at the top?

Jeff

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.