| Iris Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
#define IRIS_PORT_CONST (obj) IrisPort; IrisPort* iris_port_new (void); void iris_port_post (IrisPort *port, IrisMessage *message); void iris_port_flush (IrisPort *port); gboolean iris_port_is_paused (IrisPort *port); gboolean iris_port_has_receiver (IrisPort *port); IrisReceiver* iris_port_get_receiver (IrisPort *port); void iris_port_set_receiver (IrisPort *port, IrisReceiver *receiver); guint iris_port_get_queue_count (IrisPort *port);
IrisPort is a structure used for delivering messages. When a port is
connected to a receiver they can be used to perform actions when a message
is delivered. See iris_arbiter_receive() for more information.
IrisPort* iris_port_new (void);
Creates a new instance of an IrisPort.
Returns : |
The newly created IrisPort |
void iris_port_post (IrisPort *port, IrisMessage *message);
Posts message to the port. Any receivers listening to the port will
receive the message.
|
An IrisPort |
|
The IrisMessage to post |
void iris_port_flush (IrisPort *port);
Flushes the port by trying to redeliver messages to a listening IrisReceiver.
|
An IrisPort |
gboolean iris_port_is_paused (IrisPort *port);
Checks if the port is currently paused.
gboolean iris_port_has_receiver (IrisPort *port);
Determines if the port is currently connected to a receiver.
|
An IrisPort |
Returns : |
TRUE if there is a receiver hooked up. |
IrisReceiver* iris_port_get_receiver (IrisPort *port);
Retreives the currently attached receiver for the port.
|
An IrisPort |
Returns : |
An IrisReceiver instance or NULL.
|
void iris_port_set_receiver (IrisPort *port, IrisReceiver *receiver);
Sets the current receiver for the port. If a receiver already exists, it will be removed.
|
An IrisPort |
|
An IrisReceiver |