This looks like the "reactor" pattern.
#include "sofia-sip/su_wait.h"
#include "su_module_debug.h"
#include <sofia-sip/su_alloc.h>
#include <assert.h>
Include dependency graph for su_port.h:

Go to the source code of this file.
Data Structures | |
| struct | su_msg_s |
| Message. More... | |
| struct | su_root_t |
| Root structure. More... | |
| struct | su_port_vtable_t |
| Virtual function table for port. More... | |
| struct | su_port_s |
| Port is a per-thread reactor. More... | |
Functions | |
| void | su_msg_delivery_report (su_msg_r msg) |
| Send a delivery report. | |
| su_root_t * | su_root_create_with_port (su_root_magic_t *magic, su_port_t *port) |
| Create a reactor object using given message port. | |
| void su_msg_delivery_report | ( | su_msg_r | msg | ) |
Send a delivery report.
If the sender has attached a delivery report function to message with su_msg_report(), the message is returned to the message queue of the sending task. The sending task calls the delivery report function when it has received the message.
| su_root_t* su_root_create_with_port | ( | su_root_magic_t * | magic, | |
| su_port_t * | port | |||
| ) |