Ignore:
Timestamp:
Aug 27, 2010 6:46:29 AM (14 years ago)
Author:
ming
Message:

Closed ticket #1107: iOS4 background feature

  • pjlib:
    • add support for activesock TCP to work in background mode.
    • add feature in ioqueue to recreate closed UDP sockets.
  • pjsip-apps:
    • ipjsua: add support for iPhone OS 4 background mode
    • ipjsystest: add support for iPhone OS 4 background mode
File:
1 edited

Legend:

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

    r2394 r3299  
    303303PJ_DECL(pj_status_t) pj_activesock_close(pj_activesock_t *asock); 
    304304 
     305#if defined(PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT) && \ 
     306    PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT!=0 
     307/** 
     308 * Set iPhone OS background mode setting. Setting to 1 will enable TCP 
     309 * active socket to receive incoming data when application is in the 
     310 * background. Setting to 0 will disable it. Default value of this 
     311 * setting is PJ_ACTIVESOCK_TCP_IPHONE_OS_BG. 
     312 * 
     313 * @param asock     The active socket. 
     314 * @param val       The value of background mode setting. 
     315 * 
     316 */ 
     317PJ_DECL(void) pj_activesock_set_iphone_os_bg(pj_activesock_t *asock, 
     318                                             int val); 
     319#endif 
    305320 
    306321/** 
Note: See TracChangeset for help on using the changeset viewer.