Copyright ® (1997-2005) EDMGROUP Pty Ltd - EZY Prolog Reference

main page

EZY Redirect

 

EZY Prolog socket subsystem allows easy way of sending messages to remote server.

Programmer can define special mode, which will force system to send all write statements to the server.

Generally speaking, there is no difference to write to the file (by use of tell/told) or to the opened socket.

To do so, programmer should:

As a result, server will receive message in format:

We included sample program which demonstrates how to use redirection feature of EZY Prolog. Please start client and server under different instances of EZY Prolog and follow instructions.

Program issues write statements on timer events and redirects them to the server.

 

Copyright © 1997-2003 EDMGROUP (Australia)