Re: Reading binary data via a socket...

Sean Charles <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
>> 
> You have to set the stream(s) in binary mode (not the socket).
> 
> set_stream_type(SI, binary),
> set_stream_type(SO, binary), 
> 

Obvious really isn’t it… I have done sockets PHP and C, used setsockopt, but why oh why didn’t I have the brains to figure this out in Prolog for heavens sake?

:)

I should really send you a christmas card Danial to say thanks once again!

Sean


> Then use get_byte(SI, X) or put_byte(SI, X).
> 
> Daniel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.