Did you know ... Search Documentation:
Pack imodule -- README.md

Support for modules from the server.

Library for sharing predicates to others host by internet.

Example

Server:

:- imodule(8123,[password/1],[
                     password('password'),
                     certificate_file('cert.pem'),
                     key_file('key.pem')
                 ]).

Client:

:- iuse_module('127.0.0.1',8123,[
                                cacert_file('cert.pem'),
                                cert_verify_hook(cert_accept_any)
                            ]).

?- password(P).

Protocol (0.0.1)

Get list of predicates

Client -> Server

list.

Server -> Client

[first/1,second/2].

Run predicate

Client -> Server

run.
first(A).

Server -> Client

first(request).