Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Asterisk external application transport virtual table. More...
#include <transport.h>
Data Fields | |
int(* | connect )(struct aeap_transport *self, const char *url, const char *protocol, int timeout) |
Connect a transport. More... | |
void(* | destroy )(struct aeap_transport *self) |
Destroy a transport. More... | |
int(* | disconnect )(struct aeap_transport *self) |
Disconnect a transport. More... | |
intmax_t(* | read )(struct aeap_transport *self, void *buf, intmax_t size, enum AST_AEAP_DATA_TYPE *rtype) |
Read data from a transport. More... | |
intmax_t(* | write )(struct aeap_transport *self, const void *buf, intmax_t size, enum AST_AEAP_DATA_TYPE wtype) |
Write data to a transport. More... | |
Asterisk external application transport virtual table.
Callbacks to be implemented by "derived" transports
Definition at line 33 of file transport.h.
int(* connect) (struct aeap_transport *self, const char *url, const char *protocol, int timeout) |
Connect a transport.
self | The transport object |
url | The URL to connect to |
protocol | The connection protocol to use if applicable |
timeout | How long (in milliseconds) to attempt to connect (-1 equals infinite) |
Definition at line 44 of file transport.h.
Referenced by aeap_transport_connect(), and transport_websocket_vtable().
void(* destroy) (struct aeap_transport *self) |
Destroy a transport.
self | The transport object |
Definition at line 60 of file transport.h.
Referenced by aeap_transport_destroy().
int(* disconnect) (struct aeap_transport *self) |
Disconnect a transport.
self | The transport object |
Definition at line 53 of file transport.h.
Referenced by aeap_transport_disconnect().
intmax_t(* read) (struct aeap_transport *self, void *buf, intmax_t size, enum AST_AEAP_DATA_TYPE *rtype) |
Read data from a transport.
self | The transport object |
buf | The buffer data is read read into |
size | The size of the given data buffer |
rtype | [out] The type of data read |
Definition at line 72 of file transport.h.
Referenced by aeap_transport_read().
intmax_t(* write) (struct aeap_transport *self, const void *buf, intmax_t size, enum AST_AEAP_DATA_TYPE wtype) |
Write data to a transport.
self | The transport object |
buf | The data to write |
size | The size of data to write |
wtype | The type of data to write |
Definition at line 85 of file transport.h.
Referenced by aeap_transport_write(), and MultiOrderedConfigParser::write().