#include <stdarg.h>
#include "structs.h"
#include "packet.h"
Go to the source code of this file.
Defines | |
#define | ARTP_OPTIONS_H 1 |
#define | OPTIONS_COUNT 3 |
Enumerations | |
enum | artp_session_options { MAX_MSS, MAX_DGRAM_LEN, RETRANSMITS_TIMEOUT } |
Functions | |
int | options_init () |
int | set_global_option (char *option_name, char *option_value, int use) |
int | set_default_options (struct session_item *session) |
int | get_session_options (struct session_item *session, struct artp_dgram *dgram, char **options, int *size) |
int | parse_session_options (struct session_item *session, char *options, int size) |
int | use_options (struct session_item *session, int use, enum artp_session_options option_id, va_list *ap) |
ARTP
options definition and their manipulating functions.
|
The total options count. |
|
|
Find out session options. This function finds out options which has to be sent as a part of ARTP packet. There're returned no options for non-established sessions.
|
|
Initialize options. This function initializes options - creates necessary structure and sets default options which has to be set for each session.
|
|
Parse session options. This function is used for parsing received options and saving their values to relevant structure. Previously saved (and allocated) options which wasn't covered in parsed string will be unallocated.
|
|
Set default session options. This function is used for setting defaultly set options for given session.
|
|
Set global sessions options. This function sets global sessions options as read from config file.
|
|
Set options using. This function is used for setting using of defined options (and their values).
|