diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-01-02 08:24:10 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-01-02 08:24:10 +0000 |
commit | 7224fb899a0bdfb47773329a227f4bca452b2748 (patch) | |
tree | 7b2294bbda29f426f9b6a5cca5538da7a4443d35 /pjnath/include | |
parent | f823177cae22a9be300a01ecdaa791f3cc2b19ac (diff) |
Ticket #437: reduce stack and pool usage on pjnath to make it work better on Symbian
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1654 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjnath/include')
-rw-r--r-- | pjnath/include/pjnath/config.h | 51 | ||||
-rw-r--r-- | pjnath/include/pjnath/ice_session.h | 7 |
2 files changed, 58 insertions, 0 deletions
diff --git a/pjnath/include/pjnath/config.h b/pjnath/include/pjnath/config.h index bc381d78..c84fe18c 100644 --- a/pjnath/include/pjnath/config.h +++ b/pjnath/include/pjnath/config.h @@ -255,6 +255,57 @@ #endif +/** ICE session pool initial size. */ +#ifndef PJNATH_POOL_LEN_ICE_SESS +# define PJNATH_POOL_LEN_ICE_SESS 512 +#endif + +/** ICE session pool increment size */ +#ifndef PJNATH_POOL_INC_ICE_SESS +# define PJNATH_POOL_INC_ICE_SESS 512 +#endif + +/** ICE stream transport pool initial size. */ +#ifndef PJNATH_POOL_LEN_ICE_STRANS +# define PJNATH_POOL_LEN_ICE_STRANS 1000 +#endif + +/** ICE stream transport pool increment size */ +#ifndef PJNATH_POOL_INC_ICE_STRANS +# define PJNATH_POOL_INC_ICE_STRANS 512 +#endif + +/** NAT detect pool initial size */ +#ifndef PJNATH_POOL_LEN_NATCK +# define PJNATH_POOL_LEN_NATCK 512 +#endif + +/** NAT detect pool increment size */ +#ifndef PJNATH_POOL_INC_NATCK +# define PJNATH_POOL_INC_NATCK 512 +#endif + +/** STUN session pool initial size */ +#ifndef PJNATH_POOL_LEN_STUN_SESS +# define PJNATH_POOL_LEN_STUN_SESS 1000 +#endif + +/** STUN session pool increment size */ +#ifndef PJNATH_POOL_INC_STUN_SESS +# define PJNATH_POOL_INC_STUN_SESS 1000 +#endif + +/** STUN session transmit data pool initial size */ +#ifndef PJNATH_POOL_LEN_STUN_TDATA +# define PJNATH_POOL_LEN_STUN_TDATA 1000 +#endif + +/** STUN session transmit data pool increment size */ +#ifndef PJNATH_POOL_INC_STUN_TDATA +# define PJNATH_POOL_INC_STUN_TDATA 1000 +#endif + + /** * @} */ diff --git a/pjnath/include/pjnath/ice_session.h b/pjnath/include/pjnath/ice_session.h index 032b2dcb..2af223f3 100644 --- a/pjnath/include/pjnath/ice_session.h +++ b/pjnath/include/pjnath/ice_session.h @@ -25,6 +25,7 @@ */ #include <pjnath/types.h> #include <pjnath/stun_session.h> +#include <pjnath/errno.h> #include <pj/sock.h> #include <pj/timer.h> @@ -560,6 +561,12 @@ struct pj_ice_sess /* Valid list */ pj_ice_sess_checklist valid_list; /**< Valid list. */ + + /* Temporary buffer for misc stuffs to avoid using stack too much */ + union { + char txt[128]; + char errmsg[PJ_ERR_MSG_SIZE]; + } tmp; }; |