Pack and Unpack Data - Python Networking
I wish to transfer data through sockets between client and a server. in order to transfer the data I need to encode it and then decode it when it reaches the server, and vice versa. I think i should use the 'struct' python module that packs the data together amd encodes it. im struggling to pack multiple string and then unpack them. (I think that i should also pack an integer the represents the length of all the data, im not sure...) I'd like to have an explaination of how to do this properly! How to transfer the data properly through the sockets and then unpack the data? Thanks.