summaryrefslogtreecommitdiff
path: root/pjnath/include
diff options
context:
space:
mode:
Diffstat (limited to 'pjnath/include')
-rw-r--r--pjnath/include/pjnath/ice_strans.h34
-rw-r--r--pjnath/include/pjnath/stun_sock.h20
-rw-r--r--pjnath/include/pjnath/turn_sock.h20
3 files changed, 74 insertions, 0 deletions
diff --git a/pjnath/include/pjnath/ice_strans.h b/pjnath/include/pjnath/ice_strans.h
index 11cfc5db..fe38ff58 100644
--- a/pjnath/include/pjnath/ice_strans.h
+++ b/pjnath/include/pjnath/ice_strans.h
@@ -370,6 +370,40 @@ typedef struct pj_ice_strans_cfg
*/
pj_qos_params qos_params;
+ /**
+ * Specify target value for socket receive buffer size. It will be
+ * applied using setsockopt(). When it fails to set the specified
+ * size, it will try with lower value until the highest possible is
+ * successfully set.
+ *
+ * When this is set to zero, this component will apply socket receive
+ * buffer size settings specified in STUN and TURN socket config
+ * above, i.e: \a stun::cfg::so_rcvbuf_size and
+ * \a turn::cfg::so_rcvbuf_size. Otherwise, this setting will be
+ * applied to STUN and TURN sockets for this component, overriding
+ * the setting specified in STUN/TURN socket config.
+ *
+ * Default: 0
+ */
+ unsigned so_rcvbuf_size;
+
+ /**
+ * Specify target value for socket send buffer size. It will be
+ * applied using setsockopt(). When it fails to set the specified
+ * size, it will try with lower value until the highest possible is
+ * successfully set.
+ *
+ * When this is set to zero, this component will apply socket send
+ * buffer size settings specified in STUN and TURN socket config
+ * above, i.e: \a stun::cfg::so_sndbuf_size and
+ * \a turn::cfg::so_sndbuf_size. Otherwise, this setting will be
+ * applied to STUN and TURN sockets for this component, overriding
+ * the setting specified in STUN/TURN socket config.
+ *
+ * Default: 0
+ */
+ unsigned so_sndbuf_size;
+
} comp[PJ_ICE_MAX_COMP];
} pj_ice_strans_cfg;
diff --git a/pjnath/include/pjnath/stun_sock.h b/pjnath/include/pjnath/stun_sock.h
index 30e94a2d..081f36d5 100644
--- a/pjnath/include/pjnath/stun_sock.h
+++ b/pjnath/include/pjnath/stun_sock.h
@@ -295,6 +295,26 @@ typedef struct pj_stun_sock_cfg
*/
pj_bool_t qos_ignore_error;
+ /**
+ * Specify target value for socket receive buffer size. It will be
+ * applied using setsockopt(). When it fails to set the specified size,
+ * it will try with lower value until the highest possible is
+ * successfully set.
+ *
+ * Default: 0 (OS default)
+ */
+ unsigned so_rcvbuf_size;
+
+ /**
+ * Specify target value for socket send buffer size. It will be
+ * applied using setsockopt(). When it fails to set the specified size,
+ * it will try with lower value until the highest possible is
+ * successfully set.
+ *
+ * Default: 0 (OS default)
+ */
+ unsigned so_sndbuf_size;
+
} pj_stun_sock_cfg;
diff --git a/pjnath/include/pjnath/turn_sock.h b/pjnath/include/pjnath/turn_sock.h
index 96990baa..eddac515 100644
--- a/pjnath/include/pjnath/turn_sock.h
+++ b/pjnath/include/pjnath/turn_sock.h
@@ -166,6 +166,26 @@ typedef struct pj_turn_sock_cfg
*/
pj_uint16_t port_range;
+ /**
+ * Specify target value for socket receive buffer size. It will be
+ * applied using setsockopt(). When it fails to set the specified size,
+ * it will try with lower value until the highest possible has been
+ * successfully set.
+ *
+ * Default: 0 (OS default)
+ */
+ unsigned so_rcvbuf_size;
+
+ /**
+ * Specify target value for socket send buffer size. It will be
+ * applied using setsockopt(). When it fails to set the specified size,
+ * it will try with lower value until the highest possible has been
+ * successfully set.
+ *
+ * Default: 0 (OS default)
+ */
+ unsigned so_sndbuf_size;
+
} pj_turn_sock_cfg;