Changeset 3299 for pjproject/trunk/pjlib/src/pj/sock_bsd.c
- Timestamp:
- Aug 27, 2010 6:46:29 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/sock_bsd.c
r3238 r3299 514 514 PJ_ASSERT_RETURN(PJ_INVALID_SOCKET==-1, 515 515 (*sock=PJ_INVALID_SOCKET, PJ_EINVAL)); 516 516 517 517 *sock = socket(af, type, proto); 518 518 if (*sock == PJ_INVALID_SOCKET) 519 519 return PJ_RETURN_OS_ERROR(pj_get_native_netos_error()); 520 else 521 return PJ_SUCCESS; 520 else { 521 #if defined(PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT) && \ 522 PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT!=0 523 pj_int32_t val = 1; 524 if (type == pj_SOCK_DGRAM()) { 525 pj_sock_setsockopt(*sock, pj_SOL_SOCKET(), SO_NOSIGPIPE, 526 &val, sizeof(val)); 527 } 528 #endif 529 return PJ_SUCCESS; 530 } 522 531 } 523 532 #endif
Note: See TracChangeset
for help on using the changeset viewer.