Reads a Minerva term transmitted over a binary stream
receive/2 reads a Minerva term from a binary input stream. The term has to be transmitted with send/2.
Stream binary output stream Term term
main(_) :-
...
client_start(localhost, 1352, Socket),
open(Socket, read, Input, [socket,buffered,binary]),
open(Socket, write, Output, [socket,buffered,binary]),
send(Output, SomeRequest),
receive(Input, SomeAnswer),
...
| scroll to top |
|