Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
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_vtable * | vtable |
ast_mutex_t | write_lock |
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.
unsigned int connected |
Whether or not the transport is connected
Definition at line 102 of file transport.h.
Referenced by aeap_transport_connect(), aeap_transport_create(), aeap_transport_disconnect(), and aeap_transport_is_connected().
ast_mutex_t read_lock |
Lock used when reading
Definition at line 104 of file transport.h.
Referenced by aeap_transport_connect(), aeap_transport_create(), aeap_transport_destroy(), aeap_transport_disconnect(), aeap_transport_read(), and websocket_read().
struct aeap_transport_vtable* vtable |
Transport virtual table
Definition at line 100 of file transport.h.
Referenced by aeap_transport_connect(), aeap_transport_destroy(), aeap_transport_disconnect(), aeap_transport_read(), and aeap_transport_write().
ast_mutex_t write_lock |
Lock used when writing
Definition at line 106 of file transport.h.
Referenced by aeap_transport_connect(), aeap_transport_create(), aeap_transport_destroy(), aeap_transport_disconnect(), and aeap_transport_write().