Did you know ... Search Documentation:
Packs (add-ons) for SWI-Prolog

Package "imodule"

Title:Support for modules from the server.
Rating:Not rated. Create the first rating!
Latest version:0.0.1
SHA1 sum:750c65242d4448cafaabd796ff3f651f7a244359

Reviews

No reviews. Create the first review!.

Details by download location

VersionSHA1#DownloadsURL
0.0.1750c65242d4448cafaabd796ff3f651f7a2443591https://github.com/PiotrLi/imodule.git

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).

Contents of pack "imodule"

Pack contains 6 files holding a total of 4.9K bytes.