| Direct Client-Server communication using sockets.
Please note that the built-in predicates
for socket communication are higher-level and more
convenient than the programs detailed in this example.
These program fragments show in MINERVA applications
- the use of TCP/IP internet sockets
- to provide information as a server
- to access information as a client
- to establish dedicated port-to-port links
- to share e.g. an existing server
- the invokation of sub-processes
To use the programs on your system you may need to adapt
the host and port information. The program assumes an
underlying UNIX system - a UNIX shell is used for
convenience.
Here are the source programs:
Enjoy!
|