summaryrefslogtreecommitdiff
path: root/pjsip/include
diff options
context:
space:
mode:
authorRiza Sulistyo <riza@teluu.com>2014-06-19 05:07:12 +0000
committerRiza Sulistyo <riza@teluu.com>2014-06-19 05:07:12 +0000
commit727da5e28aa110f7931b696f1b1ba74e805bb9b4 (patch)
treef512a06809c4607bc07cd0c877f549a1ba09e580 /pjsip/include
parent97ebde15f373555da8309c7ebe657a2492b818b6 (diff)
Re #1771: Implement run-time configuration to set specific socket option.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4860 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include')
-rw-r--r--pjsip/include/pjsip/sip_transport_tcp.h8
-rw-r--r--pjsip/include/pjsip/sip_transport_tls.h18
-rw-r--r--pjsip/include/pjsua-lib/pjsua.h8
3 files changed, 34 insertions, 0 deletions
diff --git a/pjsip/include/pjsip/sip_transport_tcp.h b/pjsip/include/pjsip/sip_transport_tcp.h
index 28169fcc..a97f845f 100644
--- a/pjsip/include/pjsip/sip_transport_tcp.h
+++ b/pjsip/include/pjsip/sip_transport_tcp.h
@@ -104,6 +104,14 @@ typedef struct pjsip_tcp_transport_cfg
*/
pj_qos_params qos_params;
+ /**
+ * Specify options to be set on the transport.
+ *
+ * By default there is no options.
+ *
+ */
+ pj_sockopt_params sockopt_params;
+
} pjsip_tcp_transport_cfg;
diff --git a/pjsip/include/pjsip/sip_transport_tls.h b/pjsip/include/pjsip/sip_transport_tls.h
index 00d8fe76..b6deafc7 100644
--- a/pjsip/include/pjsip/sip_transport_tls.h
+++ b/pjsip/include/pjsip/sip_transport_tls.h
@@ -205,6 +205,23 @@ typedef struct pjsip_tls_setting
*/
pj_bool_t qos_ignore_error;
+ /**
+ * Specify options to be set on the transport.
+ *
+ * By default there is no options.
+ *
+ */
+ pj_sockopt_params sockopt_params;
+
+ /**
+ * Specify if the transport should ignore any errors when setting the
+ * sockopt parameters.
+ *
+ * Default: PJ_TRUE
+ *
+ */
+ pj_bool_t sockopt_ignore_error;
+
} pjsip_tls_setting;
@@ -234,6 +251,7 @@ PJ_INLINE(void) pjsip_tls_setting_default(pjsip_tls_setting *tls_opt)
tls_opt->reuse_addr = PJSIP_TLS_TRANSPORT_REUSEADDR;
tls_opt->qos_type = PJ_QOS_TYPE_BEST_EFFORT;
tls_opt->qos_ignore_error = PJ_TRUE;
+ tls_opt->sockopt_ignore_error = PJ_TRUE;
}
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h
index 895d9bd8..8e0e3156 100644
--- a/pjsip/include/pjsua-lib/pjsua.h
+++ b/pjsip/include/pjsua-lib/pjsua.h
@@ -2296,6 +2296,14 @@ typedef struct pjsua_transport_config
*/
pj_qos_params qos_params;
+ /**
+ * Specify options to be set on the transport.
+ *
+ * By default there is no options.
+ *
+ */
+ pj_sockopt_params sockopt_params;
+
} pjsua_transport_config;