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


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

RE: Remote Rsponse Socket Connection

Started byJoaquin Alzola <Joaquin.Alzola@lebara.com>
First post2016-03-11 13:17 +0000
Last post2016-03-11 14:31 +0000
Articles 3 — 2 participants

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


Contents

  RE: Remote Rsponse Socket Connection Joaquin Alzola <Joaquin.Alzola@lebara.com> - 2016-03-11 13:17 +0000
    Re: Remote Rsponse Socket Connection Marko Rauhamaa <marko@pacujo.net> - 2016-03-11 15:35 +0200
      RE: Remote Rsponse Socket Connection Joaquin Alzola <Joaquin.Alzola@lebara.com> - 2016-03-11 14:31 +0000

#104615 — RE: Remote Rsponse Socket Connection

FromJoaquin Alzola <Joaquin.Alzola@lebara.com>
Date2016-03-11 13:17 +0000
SubjectRE: Remote Rsponse Socket Connection
Message-ID<mailman.20.1457702244.26429.python-list@python.org>
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?

BR

Joaquin
This email is confidential and may be subject to privilege. If you are not the intended recipient, please do not copy or disclose its content but contact the sender immediately upon receipt.

[toc] | [next] | [standalone]


#104617

FromMarko Rauhamaa <marko@pacujo.net>
Date2016-03-11 15:35 +0200
Message-ID<87y49pf889.fsf@elektro.pacujo.net>
In reply to#104615
Joaquin Alzola <Joaquin.Alzola@lebara.com>:

> I received this from a socket connection. This is the received data:
>
> Adding more info --> the response is a mixture of hex numbers + ascii
>
> [...]
>
> How is the best way to decode such reply from server?

https://docs.python.org/3/library/struct.html#examples


Marko

[toc] | [prev] | [next] | [standalone]


#104619

FromJoaquin Alzola <Joaquin.Alzola@lebara.com>
Date2016-03-11 14:31 +0000
Message-ID<mailman.22.1457708728.26429.python-list@python.org>
In reply to#104617
> I received this from a socket connection. This is the received data:
>
> Adding more info --> the response is a mixture of hex numbers + ascii
>
> [...]
>
> How is the best way to decode such reply from server?

>https://docs.python.org/3/library/struct.html#examples
Thank Marko will take alook into it.

Marko
--
https://mail.python.org/mailman/listinfo/python-list
This email is confidential and may be subject to privilege. If you are not the intended recipient, please do not copy or disclose its content but contact the sender immediately upon receipt.

[toc] | [prev] | [standalone]


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


csiph-web