- ext
- clib
- socket.pl -- Network socket (TCP and UDP) library
- uid.pl -- User and group management on Unix systems
- unix.pl -- Unix specific operations
- syslog.pl
- filesex.pl -- Extended operations on files
- uri.pl -- Process URIs
- process.pl -- Create processes and redirect I/O
- time.pl -- Time and alarm library
- sha.pl -- SHA secure hashes
- crypt.pl
- memfile.pl
- uuid.pl -- Universally Unique Identifier (UUID) Library
- hash_stream.pl -- Maintain a hash on a stream
- md5.pl -- MD5 hashes
- streampool.pl -- Input multiplexing
- cgi.pl -- Read CGI parameters
- prolog_stream.pl -- A stream with Prolog callbacks
- udp_broadcast.pl -- A UDP broadcast proxy
- rlimit.pl
- clib
- udp_term_string_hook(+Scope, +Term, -String) is det[multifile, library(udp_broadcast)]
- udp_term_string_hook(+Scope, -Term, +String) is semidet[multifile, library(udp_broadcast)]
- Hook for serializing the message Term. The default writes
%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.- Arguments:
-
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: - send(ApplTerm)
- Is sent by
broadcast(udp(Scope, ApplTerm))
- request(Id, ApplTerm)
- Is sent by broadcast_request/1, where Id is a unique large (64 bit) integer.
- reply(Id, ApplTerm)
- Is sent to reply on a broadcast_request/1 request that has been received. Arguments are the same as above.
- throws
- - The hook may throw
udp(invalid_message)
to stop processing the message.