Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: Remote Rsponse Socket Connection Date: Fri, 11 Mar 2016 15:35:18 +0200 Organization: A noiseless patient Spider Lines: 14 Message-ID: <87y49pf889.fsf@elektro.pacujo.net> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="b7cb1518d23ec19d482dcc9c31d30fdd"; logging-data="31617"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+3htDVlOTZPrCMPZ2IbiOk" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:PazmGFY9T4Xfgxv2BToPkv2R9ds= sha1:l5hWYYyW6jUDP1cVtIjyCpUclsQ= Xref: csiph.com comp.lang.python:104617 Joaquin Alzola : > 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