Re: socked and bytes operation

2010-04-24 Thread luca72
i attach some part of the server so maybe you can help me to understand : Packet description (before encryption) Messages sent back and forth between newcamd and a cardserver always consist of a three byte header and (optional) data bytes. The header always starts with a command tag byte. This i

Re: socked and bytes operation

2010-04-21 Thread luca72
On 21 Apr, 20:42, John Nagle wrote: > luca72 wrote: > > Hello i have this question : > > i connect to the server in this way: > > sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM) > > sock.connect(('192.168.1.11',11502)) > > rcv = sock.recv(8124) > > here i get 14 random bytes , in a string

Re: socked and bytes operation

2010-04-21 Thread John Nagle
luca72 wrote: Hello i have this question : i connect to the server in this way: sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM) sock.connect(('192.168.1.11',11502)) rcv = sock.recv(8124) here i get 14 random bytes , in a string with strange chars like : ¬¨^.á‹•Ò a„ãj I think because sock.

Re: socked and bytes operation

2010-04-21 Thread Chris Rebert
On Wed, Apr 21, 2010 at 5:37 AM, luca72 wrote: > Hello i have this question : > i connect to the server in this way: > sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM) > sock.connect(('192.168.1.11',11502)) > rcv = sock.recv(8124) > here i get 14 random bytes , in a string with strange char