anonmars
June 12th, 2009, 04:35 PM
Hello,
I am familiar with the basic socket functions in Python (sending data over TCP, UDP, etc.), however, I have a C program that's expecting data in a certain format:
an integer value in 2 bytes and
an integer value in an 8 byte amount of space
How can I build and send such a specific packet with python? I.e. what libraries and/or functions/capabilities would even allow me to do this?
Thanks.
I am familiar with the basic socket functions in Python (sending data over TCP, UDP, etc.), however, I have a C program that's expecting data in a certain format:
an integer value in 2 bytes and
an integer value in an 8 byte amount of space
How can I build and send such a specific packet with python? I.e. what libraries and/or functions/capabilities would even allow me to do this?
Thanks.