ec_message_enqueue — Enqueue a message
int **ec_message_enqueue** ( | message, | |
| | now
); | |
Perform a message enqueue operation (either delayed OR active queue).
A pointer to an ec_message struct. For documentation of this data structure see “ec_message”
A pointer to a timeval struct.
This function returns an int. It returns 0 on success (which could mean the message has already been delivered) or -1 on error, but the error generally only happens if the recipient is invalid (which typically should not happen). The message MUST NOT be in any queue in the system otherwise the system will abort and shutdown.
It is legal to call this function in the