listen

listen();

The listen method of the NamedPipe class offers the server end of a named pipe connection and returns only when the offer has been accepted. The open offer remains in effect until a connection is established. The offer can be accepted only by a process that opens the client end of the offered pipe (for details, see the open method).

The listen method can be called only when the value of the Connection superclass state property is set to Disconnected (0).

An exception is raised if this method is invoked from a server method when the server node is not running under a Windows operating system that supports services.

The connection is established by opening a pipe name using the contents of the name property. Each end of the named pipe must open the pipe by using the same name.

The Connection superclass fillReadBuffer property determines whether the pipe is opened in bytes or in message mode. Both ends of the pipe must use the same mode.

The value of the state property changes to Connected (2) when the connection is open.

Multiple instances of the pipe can be opened by the same process or by multiple copies of the JADE application running from the same copy of the jade.exe executable program.