|Did you know ...||Search Documentation:|
write(Term), nl.. The output stream is locked, which implies no output from other threads can appear between the term and newline.
broadcast networks are the default.
multicast networks have the
advantage that you do not need to know your IP address and, with router
support, they can be used on a WAN. Therefore simplest way to initialise
the network to make two or more processes communicate on a LAN is using
?- udp_broadcast_initialize(ip(239,0,0,2), [method(multicast)]). ?- listen(write(X), writeln(X)). ?- broadcast(udp(subnet, write(hello))). hello