su_port.h File Reference


Detailed Description

Internal OS-independent syncronization interface.

This looks like the "reactor" pattern.

Author:
Pekka Pessi <Pekka.Pessi@nokia-email.address.hidden>
Date:
Created: Fri May 12 14:13:34 2000 ppessi

#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

SOFIAPUBFUN void su_msg_delivery_report (su_msg_r msg)
 Send a delivery report.
SOFIAPUBFUN su_root_tsu_root_create_with_port (su_root_magic_t *magic, su_port_t *port)
 Create a reactor object using given message port.


Function Documentation

SOFIAPUBFUN 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.

Allocate and initialize the instance of su_root_t.

Parameters:
magic pointer to user data
port pointer to a message port
Returns:
A pointer to allocated su_root_t instance, NULL on error.


Sofia-SIP 1.12.1 - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.