NamedPipe Class
The NamedPipe class, a subclass of the
One process must offer the server end of the Named Pipe channel, and another process can then connect to the client end of the channel. After the connection is made and while it remains valid, both sides of the pipe have equal status (that is, the terms server and client do not apply).
The client node has the same software and hardware requirements as a Jade presentation client and the server node has the same software and hardware requirements as a Jade standard client. For details about the current operational requirements, see "
The NamedPipe class objects are transient. If an attempt is made to create a persistent NamedPipe object, an exception is raised. Multiple instances of the pipe can be opened, by running multiple copies of the Jade application from the same jade.exe executable program, where each application opens the same pipe name.
The NamedPipe class supports both synchronous and asynchronous operations, as follows.
-
Synchronous methods have no defined timeout mechanism at the NamedPipe class level. These operations will wait forever for completion.
-
Asynchronous methods have a receiver object and a message (method name) specified as parameters.
When the method (I/O) completes, the specified (callback) method of the object is called. The callback method must match the signature required by the calling asynchronous method.
Only one synchronous or asynchronous read operation can be in effect at each end of each instance of the pipe. Multiple asynchronous write operations can be in effect.
Opening the server end of the pipe waits until the other end of the pipe is connected. Opening the client end of the pipe fails immediately if the server end of the pipe has not been offered.
The
For details about the property and methods defined in the NamedPipe class, see "NamedPipe Property" and "NamedPipe Methods", in the following subsections.