Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #104616 > unrolled thread

Re: Remote Rsponse Socket Connection

Started byAndrew Berg <aberg010@my.hennepintech.edu>
First post2016-03-11 07:28 -0600
Last post2016-03-11 07:28 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Remote Rsponse Socket Connection Andrew Berg <aberg010@my.hennepintech.edu> - 2016-03-11 07:28 -0600

#104616 — Re: Remote Rsponse Socket Connection

FromAndrew Berg <aberg010@my.hennepintech.edu>
Date2016-03-11 07:28 -0600
SubjectRe: Remote Rsponse Socket Connection
Message-ID<mailman.21.1457702952.26429.python-list@python.org>
On 2016.03.11 07:17, Joaquin Alzola wrote:
> HI Guys
> 
> I received this from a socket connection. This is the received data:
> 
> Adding more info --> the response is a mixture of hex numbers + ascii
> 
> From python function --> data = s.recv(2048)
> 
> b'\x01\x00\x00D\x00\x00\x01\x18\x00\x00\x00\x00p2E\xe1+\xe8xG\x00\x00\x01\x08@\x00\x00\x0bmmm\x00\x00\x00\x01(@\x00\x00\x16mmm.xxxxxx.com\x00\x00\x00\x00\x01\x0c@\x00\x00\x0c\x00\x00\x07\xd1'
> 
> How is the best way to decode such reply from server?
There are generally libraries for dealing with whatever protocol you're using,
and they'll be a lot better than something you slap together yourself. If you
insist on writing your own thing, then take a look at the documentation for
that protocol (for most, this is an RFC).

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web