Previous PageTable Of ContentsHomeIndexNext Page


3. Basic SRL Programming Models


Top Of Page3.1. Selecting Basic SRL Programming Models

This section describes the following basic SRL programming models:

Basic programming models are recommended because you can apply them to almost all applications. Select a basic programming model according to the criteria shown in Table 1. The sections following this table describe these basic programming models.


Table 1. Guidelines for Selecting a Basic Programming Model

Application Requirements

Recommended Basic Programming Model

Threading and Event Handling Considerations

Few devices

Synchronous

(Section 3.2)

Create a separate thread to execute processing for each Dialogic device.

Many devices

Multiple tasks

Asynchronous

(Section 3.3)

Call sr_waitevt( ) to wait for events. Create a single thread to execute processing for all Dialogic devices.

Many devices

Multiple tasks

Needs to wait for events on more than one grouping of devices.

Extended Asynchronous

(Section 3.4)

Call sr_waitevtEx( ) for each grouping of devices, to wait for events on that grouping.


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated January, 2001