diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2009-03-02 15:50:12 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2009-03-02 15:50:12 +0000 |
commit | 2cb03b78e0f1adeb9739525853ff422fb908c2cf (patch) | |
tree | 1e48a58c268151ee36e7424e111dc2f793d4296d /pjlib/include | |
parent | f018a94b1cbcf3cbd8b0cf361c638e31679a9c18 (diff) |
Ticket #733:
- Added new Symbian specific API in PJLIB, pj_symbianos_set_connection_status(), to let PJLIB knows the connection status.
- Added connection status checks before Symbian socket operations.
- Added loop limiter in Symbian busy_sleep() to avoid the possibility of infinite loop.
- Added sample of connection monitor in Symbian sample application (ua.cpp).
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.0@2482 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include')
-rw-r--r-- | pjlib/include/pj/os.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pjlib/include/pj/os.h b/pjlib/include/pj/os.h index 0bd18638..4a5a77f8 100644 --- a/pjlib/include/pj/os.h +++ b/pjlib/include/pj/os.h @@ -394,6 +394,18 @@ typedef struct pj_symbianos_params */ PJ_DECL(pj_status_t) pj_symbianos_set_params(pj_symbianos_params *prm); +/** + * Notify PJLIB that the access point connection has been down or unusable + * and PJLIB should not try to access the Symbian socket API (especially ones + * that send packets). Sending packet when RConnection is reconnected to + * different access point may cause the WaitForRequest() for the function to + * block indefinitely. + * + * @param up If set to PJ_FALSE it will cause PJLIB to not try + * to access socket API, and error will be returned + * immediately instead. + */ +PJ_DECL(void) pj_symbianos_set_connection_status(pj_bool_t up); /** * @} |