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

EZY Sockets

New in EZY Prolog

Tutorials

Download EZY Prolog

main page

EZY Designing

EZY Prolog basics

EZY GUI and Visual Prolog

EZY Debugger

EZY Code Generator

EZY DLL

EZY Textmode

EZY Read/Write

EZY Lists

EZY Dialogs

EZY Menu

EZY GUI

EZY Programming

EZY Samples

EZY Sockets

EZY_XML

EZY ODBC

EZY Tree and XTree

EZY Regular expressions

EZY DDE (Dynamic Data Exchange)

Data type checking/conversion

Execution control

Term unification

Operators

File system

Operating system

Date/Time functions

String operations

Built-in WEB Browser

Internal Databases

Debugging

HTML support

EZY Prolog Domains

EZY Prolog Functions

EZY Prolog versions

EZY Prolog has built-in predicates, which support communication using Windows sockets.

Generally speaking, EZY Prolog program can start Winsock server on defined port and exchange TEXT strings with another program (local or from the network).

Programmer need to define EZY Prolog clause, which will receive Winsock messages and perform necessary actions (on client and server side).

The ability to exchange messages over Windows sockets allows to use EZY Prolog in distributed applications and integrate EZY Prolog into applications, written by procedural languages (C, Delphi, Java, VB).

EZY Prolog supports synchronous and asynchronous calls over the sockets. For example, socket_remote_run sends string for the execution on the server, waits for completion and obtains results of the execution. A timeout can be defined to prevent deadlock in message processing.

There are several samples which demonstrate the use of EZY Sockets:

  • EZY Server - creates Winsock server and processes messages

  • EZY Client - connects to Winsock server and exchange messages

  • EZY Remote Run - runs program on server and capture program output on client site.

  • EZY Redirect - redirects output of write(..) statements from client to server.

EZY Sockets provides convenient way of writing client-server GUI applications. System provides strong association between WINDOW and created communicaion socket. Window parameter can be used for direct access to GUI components of the application.

 

Note: You need to run these samples under EZY Prolog. Click here to download.

 

 

 

Copyright © 1997-2003 EDMGROUP (Australia)

Last Updated:

September 14, 2003