mrcp_server_connection.h File Reference
MRCPv2 Server Connection.
More...
#include "apt_task.h"
#include "mrcp_connection_types.h"
Go to the source code of this file.
Functions |
APT_BEGIN_EXTERN_C
mrcp_connection_agent_t * | mrcp_server_connection_agent_create (const char *id, const char *listen_ip, apr_port_t listen_port, apr_size_t max_connection_count, apt_bool_t force_new_connection, apr_pool_t *pool) |
apt_bool_t | mrcp_server_connection_agent_destroy (mrcp_connection_agent_t *agent) |
apt_bool_t | mrcp_server_connection_agent_start (mrcp_connection_agent_t *agent) |
apt_bool_t | mrcp_server_connection_agent_terminate (mrcp_connection_agent_t *agent) |
void | mrcp_server_connection_agent_handler_set (mrcp_connection_agent_t *agent, void *obj, const mrcp_connection_event_vtable_t *vtable) |
void | mrcp_server_connection_resource_factory_set (mrcp_connection_agent_t *agent, const mrcp_resource_factory_t *resource_factory) |
void | mrcp_server_connection_rx_size_set (mrcp_connection_agent_t *agent, apr_size_t size) |
void | mrcp_server_connection_tx_size_set (mrcp_connection_agent_t *agent, apr_size_t size) |
apt_task_t * | mrcp_server_connection_agent_task_get (const mrcp_connection_agent_t *agent) |
void * | mrcp_server_connection_agent_object_get (const mrcp_connection_agent_t *agent) |
const char * | mrcp_server_connection_agent_id_get (const mrcp_connection_agent_t *agent) |
mrcp_control_channel_t * | mrcp_server_control_channel_create (mrcp_connection_agent_t *agent, void *obj, apr_pool_t *pool) |
apt_bool_t | mrcp_server_control_channel_add (mrcp_control_channel_t *channel, mrcp_control_descriptor_t *descriptor) |
apt_bool_t | mrcp_server_control_channel_modify (mrcp_control_channel_t *channel, mrcp_control_descriptor_t *descriptor) |
apt_bool_t | mrcp_server_control_channel_remove (mrcp_control_channel_t *channel) |
apt_bool_t | mrcp_server_control_channel_destroy (mrcp_control_channel_t *channel) |
apt_bool_t | mrcp_server_control_message_send (mrcp_control_channel_t *channel, mrcp_message_t *message) |
Detailed Description
MRCPv2 Server Connection.
Function Documentation
APT_BEGIN_EXTERN_C mrcp_connection_agent_t* mrcp_server_connection_agent_create |
( |
const char * |
id, |
|
|
const char * |
listen_ip, |
|
|
apr_port_t |
listen_port, |
|
|
apr_size_t |
max_connection_count, |
|
|
apt_bool_t |
force_new_connection, |
|
|
apr_pool_t * |
pool | |
|
) |
| | |
Create connection agent.
- Parameters:
-
| id | the identifier of the engine |
| listen_ip | the IP address to listen on |
| listen_port | the port to listen on |
| max_connection_count | the number of max MRCPv2 connections |
| force_new_connection | the policy used in o/a for connection establishment |
| pool | the pool to allocate memory from |
Destroy connection agent.
- Parameters:
-
| agent | the agent to destroy |
Set connection event handler.
- Parameters:
-
| agent | the agent to set event hadler for |
| obj | the external object to associate with the agent |
| vtable | the event handler virtual methods |
Get string identifier.
- Parameters:
-
| agent | the agent to get identifier of |
Get external object.
- Parameters:
-
| agent | the agent to get object from |
Start connection agent and wait for incoming requests.
- Parameters:
-
Get task.
- Parameters:
-
| agent | the agent to get task from |
Terminate connection agent.
- Parameters:
-
| agent | the agent to terminate |
Set MRCP resource factory.
- Parameters:
-
| agent | the agent to set resource factory for |
| resource_factory | the MRCP resource factory to set |
Set rx buffer size.
- Parameters:
-
| agent | the agent to set buffer size for |
| size | the size of rx buffer to set |
Set tx buffer size.
- Parameters:
-
| agent | the agent to set buffer size for |
| size | the size of the rx buffer to set |
Add MRCPv2 control channel.
- Parameters:
-
| channel | the control channel to add |
| descriptor | the control descriptor |
Create control channel.
- Parameters:
-
| agent | the agent to create channel for |
| obj | the external object to associate with the control channel |
| pool | the pool to allocate memory from |
Destroy MRCPv2 control channel.
- Parameters:
-
| channel | the control channel to destroy |
Modify MRCPv2 control channel.
- Parameters:
-
| channel | the control channel to modify |
| descriptor | the control descriptor |
Remove MRCPv2 control channel.
- Parameters:
-
| channel | the control channel to remove |
Send MRCPv2 message.
- Parameters:
-
| channel | the control channel to send message through |
| message | the message to send |