Stack management functions

Name

Stack management functions -- Initialization and termination of the library.

Synopsis


#include <ortp.h>


void        ortp_init                       ();
void        ortp_scheduler_init             ();
void        ortp_exit                       ();

Description

The oRTP library must be initialized using ortp_init() at the beggining of your application. If you want to use the packet scheduler in your application, you must also call ortp_scheduler_init(). It is cleaner to call ortp_exit() when the library is no more needed (in most case at the end of your application).

Details

ortp_init ()

void        ortp_init                       ();

Initialize the oRTP library. You should call this function first before using oRTP API.


ortp_scheduler_init ()

void        ortp_scheduler_init             ();

Initialize the oRTP scheduler. You only have to do that if you intend to use the scheduled mode of the RtpSession in your application.


ortp_exit ()

void        ortp_exit                       ();

Gracefully uninitialize the library, including shutdowning the scheduler if it was started.