IPCPort (open)
An IPC port is used as an address to create IPC links to. Only one port with a given name may exist in a system.
If you need to wait on a incoming link request, you can use the @a handle property as a parameter to WaitForMultiple. The handle is signalled when a link request is in queue.
Syntax
LOADLIB "wh::ipc.whlib";
OBJECTTYPE IPCPort
Variables
- RECORD userdata (inherited from __HS_INTERNAL_OutputObject)
Data for the user of this object
Properties
- PROPERTY handle (inherited from __HS_INTERNAL_OutputObject)
Handle
- PROPERTY name
Global name of the port.
Functions
- OBJECT FUNCTION Accept(DATETIME wait_until)
Accepts an incoming link on the port
- OBJECT FUNCTION AsyncAccept(DATETIME wait_until)
Accepts an incoming link on the port
- OBJECT FUNCTION AsyncWaitRead(DATETIME until) (inherited from __HS_INTERNAL_OutputObject)
Returns a promise that will be resolved when this output object becomes read signalled
- MACRO Close()
Closes the port
- BOOLEAN FUNCTION IsReadSignalled() (inherited from __HS_INTERNAL_OutputObject)
Returns whether this object is read-signalled
- BOOLEAN FUNCTION IsSignalled()
Returns whether this object is signalled.
- BOOLEAN FUNCTION IsWriteSignalled() (inherited from __HS_INTERNAL_OutputObject)
Returns whether this object is write-signalled
- BOOLEAN FUNCTION Wait(DATETIME until) (inherited from __HS_INTERNAL_OutputObject)
Waits until this output has become signalled (read or write)