Error Handling

Altair IPC status codes can be used for error handling within your C program.

ALTAIR_IPC_ALLOCATION_FAILED
Either the host program or external program is unable to allocate enough memory.
ALTAIR_IPC_BAD_HEADER
The host program is unable to read the header data from the external program.
ALTAIR_IPC_CHILD_CLOSED_PIPE
The external program terminated unexpectedly.
ALTAIR_IPC_CHILD_FAILED_DUP
The maximum number of file descriptors is currently open.
ALTAIR_IPC_CHILD_FAILED_EXEC
The host program is unable to execute the external program.
ALTAIR_IPC_FAILED_FORK
The host program is unable to create a new process.
ALTAIR_IPC_FAILED_SIGNAL_HANDLER
The host program is unable to install the Altair signal handler.
ALTAIR_IPC_FAILED_SIGPIPE
The host program is unable to open a communications socket to the external program.
ALTAIR_IPC_READ_FAILED
Either the host program or external program is unable to read data.
ALTAIR_IPC_SENDBUFF_TOO_SMALL
The communications socket is too small.
ALTAIR_IPC_SUCCESS
The Altair IPC function completed successfully.
ALTAIR_IPC_WRITE_FAILED
Either the host program or the external program is unable to send data.
ALTAIR_IPC_WRONG_TYPE
Either the host program or external program is expecting a different data type than is being sent.