diff options
author | Benny Prijono <bennylp@teluu.com> | 2013-04-26 06:01:43 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2013-04-26 06:01:43 +0000 |
commit | 794a79431f46ba8a6c5316c082c064b1b768586a (patch) | |
tree | 6f176e0204a84a4ea29578c15c833903eb745818 /pjlib/include | |
parent | 688fdf10f000a6190b31eee6fc183decda5005aa (diff) |
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
Diffstat (limited to 'pjlib/include')
-rw-r--r-- | pjlib/include/pj/ssl_sock.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ -711,6 +711,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 * field rather than \a qos_param fields since this is more portable. |