:- use_module(library(tipc/tipc)).Defined options are:
error(socket_error(eagain, Message), _), will be thrown. 
Users are cautioned not to "spin" unnecessarily on non-blocking receives 
as they may prevent the system from servicing other background 
activities such as XPCE event dispatching.The typical sequence to receive a connectionless TIPC datagram is:
receive :-
        tipc_socket(S, dgram),
        tipc_bind(S, name(18888, 10, 0), scope(zone)),
        repeat,
            tipc_receive(S, Data, From, [as(atom)]),
            format('Got ~q from ~q~n', [Data, From]),
            Data == quit,
        !, tipc_close_socket(S).