Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #104595 > unrolled thread
| Started by | Joaquin Alzola <Joaquin.Alzola@lebara.com> |
|---|---|
| First post | 2016-03-11 09:02 +0000 |
| Last post | 2016-03-11 09:02 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
Remote Rsponse Socket Connection Joaquin Alzola <Joaquin.Alzola@lebara.com> - 2016-03-11 09:02 +0000
| From | Joaquin Alzola <Joaquin.Alzola@lebara.com> |
|---|---|
| Date | 2016-03-11 09:02 +0000 |
| Subject | Remote Rsponse Socket Connection |
| Message-ID | <mailman.6.1457686949.26429.python-list@python.org> |
HI Guys I received this from a socket connection. This is the received data: >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' I received a byte string with hexadecimal values and some extra junk like \x0bmmm (mmm). But that junk needs to be on the message. 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.
Back to top | Article view | comp.lang.python
csiph-web