External Communication with Comms/CPN
How-to


Comms/CPN is a CPN ML library which makes it possible for CPN Tools to communicate based on TCP/IP with external application and processes. Comms/CPN is available in version 1.0.1 (and later) of CPN Tools.

Using the Library

The user is referred to the paper Comms/CPN: A Communication Infrastructure for External Communication with Design/CPN for a detailed description of Comms/CPN. The paper appeared in the proceedings of the CPN'2001 workshop.

A canreceive primitive has been added, w.r.t. what is described in the paper above, making it possible to check whether data is available on a given connection.

The most important functions from the paper are explained on the page for Comms/CPN functions.

Java Files

Several Java files are available for connecting CPN Tools and Java processes.

Example Net

The files for this net can be found in a subdir of cpntools called Samples\DiningPhilosophers

Acknowledgements