Re: Concatenate a string as binary bytes

2010-12-14 Thread Benjamin Kaplan
2010/12/14 Jaime Fernández : > Hi > To build a binary packet (for SMPP protocol), we have to concatenate > different types of data: integers, floats, strings. > We are using struct.pack to generate the binary representation of each > integer and float of the packet, and then they are concatenated w

Re: Concatenate a string as binary bytes

2010-12-14 Thread MRAB
On 14/12/2010 19:50, Jaime Fernández wrote: Hi To build a binary packet (for SMPP protocol), we have to concatenate different types of data: integers, floats, strings. We are using struct.pack to generate the binary representation of each integer and float of the packet, and then they are conca