Ignore:
Timestamp:
Mar 2, 2009 3:48:45 PM (15 years ago)
Author:
nanang
Message:

Ticket #732:

  • 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).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/os.h

    r2394 r2481  
    395395PJ_DECL(pj_status_t) pj_symbianos_set_params(pj_symbianos_params *prm); 
    396396 
     397/** 
     398 *  Notify PJLIB that the access point connection has been down or unusable 
     399 *  and PJLIB should not try to access the Symbian socket API (especially ones 
     400 *  that send packets). Sending packet when RConnection is reconnected to  
     401 *  different access point may cause the WaitForRequest() for the function to  
     402 *  block indefinitely. 
     403 *   
     404 *  @param up           If set to PJ_FALSE it will cause PJLIB to not try 
     405 *                      to access socket API, and error will be returned 
     406 *                      immediately instead. 
     407 */ 
     408PJ_DECL(void) pj_symbianos_set_connection_status(pj_bool_t up); 
    397409 
    398410/** 
Note: See TracChangeset for help on using the changeset viewer.