Asterisk - The Open Source Telephony Project  21.4.1
Data Fields
aeap_transport Struct Reference

Asterisk external application transport structure to be "derived" by specific transport implementation types. More...

#include <transport.h>

Data Fields

unsigned int connected
 
ast_mutex_t read_lock
 
struct aeap_transport_vtablevtable
 
ast_mutex_t write_lock
 

Detailed Description

Asterisk external application transport structure to be "derived" by specific transport implementation types.

Transports are assumed to support simultaneous reading and writing, thus separate read and write locks. A transport type not supporting such can simply apply the opposing lock during a read or write, i.e. lock the write lock during a read and vice versa.

Definition at line 98 of file transport.h.

Field Documentation

unsigned int connected

Whether or not the transport is connected

Definition at line 102 of file transport.h.

ast_mutex_t read_lock

Lock used when reading

Definition at line 104 of file transport.h.

struct aeap_transport_vtable* vtable

Transport virtual table

Definition at line 100 of file transport.h.

ast_mutex_t write_lock

Lock used when writing

Definition at line 106 of file transport.h.


The documentation for this struct was generated from the following file: