Did you know ... | Search Documentation: |
Packs (add-ons) for SWI-Prolog |
Title: | Support for modules from the server. |
---|---|
Rating: | Not rated. Create the first rating! |
Latest version: | 0.0.1 |
SHA1 sum: | 750c65242d4448cafaabd796ff3f651f7a244359 |
No reviews. Create the first review!.
Version | SHA1 | #Downloads | URL |
---|---|---|---|
0.0.1 | 750c65242d4448cafaabd796ff3f651f7a244359 | 1 | https://github.com/PiotrLi/imodule.git |
Library for sharing predicates to others host by internet.
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).
Client -> Server
list.
Server -> Client
[first/1,second/2].
Client -> Server
run. first(A).
Server -> Client
first(request).
Pack contains 6 files holding a total of 4.9K bytes.