From 794a79431f46ba8a6c5316c082c064b1b768586a Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Fri, 26 Apr 2013 06:01:43 +0000 Subject: Fixed #1661: Option to use SO_REUSEADDR for TCP and TLS listeners and use it by default on non-Windows platforms git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4506 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/include/pj/ssl_sock.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pjlib/include') diff --git a/pjlib/include/pj/ssl_sock.h b/pjlib/include/pj/ssl_sock.h index 534c9144..bfad5af2 100644 --- a/pjlib/include/pj/ssl_sock.h +++ b/pjlib/include/pj/ssl_sock.h @@ -710,6 +710,14 @@ typedef struct pj_ssl_sock_param */ pj_str_t server_name; + /** + * Specify if SO_REUSEADDR should be used for listening socket. This + * option will only be used with accept() operation. + * + * Default is PJ_FALSE. + */ + pj_bool_t reuse_addr; + /** * QoS traffic type to be set on this transport. When application wants * to apply QoS tagging to the transport, it's preferable to set this -- cgit v1.2.3