Ignore:
Timestamp:
Aug 27, 2010 6:46:29 AM (11 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/src/pj/ioqueue_common_abs.c

    r3088 r3299  
    530530            /* In any case we would report this to caller. */ 
    531531            bytes_read = -rc; 
     532 
     533#if defined(PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT) && \ 
     534    PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT!=0 
     535            /* Special treatment for dead UDP sockets here, see ticket #1107 */ 
     536            if (rc == PJ_STATUS_FROM_OS(ENOTCONN) && !IS_CLOSING(h) && 
     537                h->fd_type==pj_SOCK_DGRAM()) 
     538            { 
     539                replace_udp_sock(h); 
     540            } 
     541#endif 
    532542        } 
    533543 
Note: See TracChangeset for help on using the changeset viewer.