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


_______________________________________________
Users-prolog mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/users-prolog

Reply via email to