| Did you know ... | Search Documentation: |
| Predicate tipc_send/4 |
:- use_module(library(tipc/tipc)).
[det]tipc_send(+Socket,
+Data, +To, +Options)tipc_overview.txt,
for more information on TIPC Address Structures. Options is
currently unused.
A simple example to send a connectionless TIPC datagram is:
send(Message) :-
tipc_socket(S, dgram),
tipc_send(S, Message, name(18888, 10,0), []),
tipc_close_socket(S).
Messages are delivered silently unless some form of congestion was
encountered and the dest_droppable(false) option was issued
on the sender's socket. In this case, the send succeeds but a
notification in the form of an empty message is returned to the sender
from the receiver, indicating some kind of delivery failure. The port-id
of the receiver is returned in congestion conditions. A port_id(0,0),
is returned if the destination address was invalid. Senders and
receivers should beware of this possibility.