Binary data exchange

2014-05-29 Thread rasikasriniva...@gmail.com
friends I have a pair of simple python programs as follows: #!/usr/bin/python # broadcast.py import socket from ctypes import * import random class PurgeData(Structure): _fields_ = [(press,c_int), (ticks,c_int), (volume,c_float)] myPort = 10756

Re: Binary data exchange

2014-05-29 Thread rasikasriniva...@gmail.com
BTW - My environment is: H:\python Enthought Canopy Python 2.7.6 | 64-bit | (default, Apr 11 2014, 20:31:44) [MSC v .1500 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. -- https://mail.python.org/mailman/listinfo/python-list

Re: Binary data exchange

2014-05-29 Thread MRAB
On 2014-05-29 23:08, rasikasriniva...@gmail.com wrote: friends I have a pair of simple python programs as follows: #!/usr/bin/python # broadcast.py import socket from ctypes import * import random class PurgeData(Structure): _fields_ = [(press,c_int), (ticks,c_int), (volume,c_float)]

Re: Binary data exchange

2014-05-29 Thread Ian Kelly
On Thu, May 29, 2014 at 5:09 PM, MRAB pyt...@mrabarnett.plus.com wrote: On 2014-05-29 23:08, rasikasriniva...@gmail.com wrote: the received data for the messages 9 thru 13 are not as expected. I wonder if anyone can see what I am doing wrong? Appreciate any hints. thanks, srini I don't

Re: Binary data exchange

2014-05-29 Thread rasikasriniva...@gmail.com
Of course Cut and paste issue. Anyhow, i will look at the struct module. cheers, srini On Thursday, May 29, 2014 7:09:21 PM UTC-4, MRAB wrote: On 2014-05-29 23:08, rasikasriniva...@gmail.com wrote: friends I have a pair of simple python programs as follows:

Re: Binary data exchange

2014-05-29 Thread Mark Lawrence
On 30/05/2014 00:25, rasikasriniva...@gmail.com wrote: Of course Cut and paste issue. Anyhow, i will look at the struct module. cheers, srini Please let us know how you get on, please don't top post, and please either use the mailing list