users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading binary data via a socket...


From: Sean Charles
Subject: Re: Reading binary data via a socket...
Date: Sat, 23 Nov 2013 08:41:20 +0000

>> 
> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]