:- use_module(library(udp_broadcast)). [det,multifile]udp_term_string_hook(+Scope, 
+Term, -String)
[det,multifile]udp_term_string_hook(+Scope, 
+Term, -String)%prolog\n, followed by the Prolog term in quoted notation 
while ignoring operators. This hook may use alternative serialization 
such as fast_term_serialized/2, use library(ssl) 
to realise encrypted messages, etc.
| Scope | is the scope for which the message is broadcasted. This can be used to use different serialization for different scopes. | 
| Term | encapsulates the term broadcasted by 
the application as follows: 
 
 | 
udp(invalid_message) to stop processing 
the message.