su_osx_runloop.c File Reference


Detailed Description

OS-Independent Socket Syncronization Interface.

This looks like nth reincarnation of "reactor". It implements the poll/select/WaitForMultipleObjects and message passing functionality.

Author:
Pekka Pessi <Pekka.Pessi@nokia-email.address.hidden>

Martti Mela <martti.mela@nokia-email.address.hidden>

Date:
Created: Tue Sep 14 15:51:04 1999 ppessi

#include "config.h"
#include <stdlib.h>
#include <assert.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <errno.h>
#include "su_port.h"
#include "sofia-sip/su_osx_runloop.h"
#include "sofia-sip/su_alloc.h"
#include "sofia-sip/su_debug.h"

Include dependency graph for su_osx_runloop.c:

Functions

su_root_tsu_root_osx_runloop_create (su_root_magic_t *magic)
 Create a reactor object.
void su_root_osx_prepare_run (su_root_t *root)
 Prepare root to be run on OSX Run Loop.


Function Documentation

void su_root_osx_prepare_run ( su_root_t root  ) 

Prepare root to be run on OSX Run Loop.

Sets su_root_t object to be callable by the application's run loop. This function is to be used instead of su_root_run() for OSX applications using Core Foundation's Run Loop.

The function su_root_osx_prepare_run() returns immmediately.

Parameters:
root pointer to root object
Since:
New in 1.12.4.

su_root_t* su_root_osx_runloop_create ( su_root_magic_t magic  ) 

Create a reactor object.

Allocate and initialize the instance of su_root_t.

Parameters:
magic pointer to user data
Returns:
A pointer to allocated su_root_t instance, NULL on error.
Since:
New in 1.12.4.


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