Did you know ... Search Documentation:
Predicate udp_term_string/3
 udp_term_string(+Scope, +Term, -String) is det[private]
udp_term_string(+Scope, -Term, +String) is semidet[private]
Serialize an arbitrary Prolog term as a string. The string is prefixed by a magic key to ensure we only accept messages that are meant for us.

In mode (+,-), Term is written with the options ignore_ops(true) and quoted(true).

This predicate first calls udp_term_string_hook/3.