The (socket) command is a simple addition to the set of I/O functions
inherited from CLIPS: (printout), (read), (readline), (open) and
(close). (socket) returns a "router name" which lets you use (read) or
(readline) to read Jess data from a network connection. (open) does
the same for files. Note that (read) and (readline) will return tokens
as if Jess code were being parsed. They can't handle binary data or
other things that don't appear in Jess code. This behavior simply
follows how these functions work in CLIPS. If you want to do general
network I/O, you can instead use Jess's reflection capabilities to
create your own java.net.Socket objects.

Anyway, the example program "examples/browse.clp" shows a simple use
of the (socket) function.


I think [EMAIL PROTECTED] wrote:
[Charset iso-2022-jp unsupported, skipping...]



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to