Next: Socket-probing.
Up: Socket I/O
Previous: Buffered, message-based communication.
  Contents
  Index
Internally, this interface uses the same sendto and recvfrom
socket calls, but they are executed for each character separately.
This interface is appropriate when the message format is not known or when
message boundaries are determined using special delimiters.
socket_get0/3 creates the end-of-file condition when it receives the
end-of-file character CH_EOF_P (a.k.a. 255) defined in char_defs.h (which must be included in the XSB program). C programs
that need to send an end-of-file character should send (char)-1.
- socket_get0(+Sockfd, -Char, ?ErrorCode)
-
The equivalent of get0 for sockets.
- socket_put(+Sockfd, +Char, ?ErrorCode)
-
Similar to put/1, but works on sockets.
Luis Fernando P. de Castro
2003-06-27