writeBinaryAsynch

writeBinaryAsynch(buffer:   Binary:
                  receiver: Object;
                  msg:      String);

The writeBinaryAsynch method of the NamedPipe class writes binary data to the connection and returns immediately.

When the operation is complete, the callback method name specified in the msg parameter is called for the receiver object parameter. The callback method must match the signature required by the calling writeBinaryAsynch method, as follows.

writeBinaryCallback(pipe: NamedPipe);

If the write operation fails, a connection exception is raised, with a Windows error number.

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.

If the other end of the connection has been closed, this end of the connection is also closed. If this occurs, the value of the Connection superclass state property is Disconnected (0) and the exception raised is usually 109 (broken pipe).

The writeBinaryAsynch method can be called only when the value of the Connection superclass state property is Connected (2).

Another asynchronous write operation can be issued before the previous write operation is complete if it calls the same object and method on completion.