Operation Notes |
 |
For every AIFPORTOPEN performed during the life of a process, a
corresponding AIFPORTCLOSE should be performed. In the event of a
process abort, or if the process neglects to call AIFPORTCLOSE for any
or all of the ports it has open, the ports are closed automatically during
the process termination sequence. If the port is not specified to be a
permanent port by the last process to open the port, it is destroyed when
the last opener closes the port. If the port is a permanent port, it
remains after the last process closes it.
Asynchronous ports are always temporary and have only a single
receiver (the creator); therefore, when the creating process terminates or
calls AIFPORTCLOSE with receive access, subsequent sends to the port
return an error since the receiver no longer exists. See "Operation
Notes" on AIFPORTOPEN for more details on asynchronous ports.