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

main page

EZY Sockets messages

 

EZY Prolog program can define which clause will receive Winsock messages.

EZY Prolog provides messages in predefined format, which simplifies rules definitions for event handler.

Event handler can return message as reply to incoming message or can fail without reply. The ability to reply to message allows to built complex interfaces and protocols (user identification for instance).

Socket event handler receives the messages of the following type:

 

Socket messages

 

server_ready

Server is ready for message processing

server_finished

Server finished message processing

remote_run(STRING)

Send string for execution to server. For more information about remote execution click here

remote_reply(STRING)

Receive result of remote execution

server_reply(STRING)

Reply from server

server_stream(STRING)

Results of write(..) statements redirected to client via sockets

server_error(STRING MSG)

Server error detected

 

 

Server messages

 

remote_run(STRING)

Request from client to execute program remotely. If no event handler defined for this event - program will be executed.

socket_connect(SOCKET CLIENT, INTEGER PORT_CLIENT, STRING HOST)

Connect to server via port and associate connection with FRAME Object

socket_closed(SOCKET CLIENT,STRING MESSAGE)

Connection on socket closed

server_redirect(BOOLEAN)

Command to define redirection of write(..) statements

client_request(STRING)

Request from client

client_finished

Confirmation -finished message processing on client side

client_error(STRING MSG)

Client error detected

 

Copyright © 1997-2003 EDMGROUP (Australia)

Last Updated:

October 6, 2003