- Timestamp:
- Dec 28, 2016 3:40:07 AM (8 years ago)
- Location:
- pjproject/branches/projects/uwp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/uwp
- Property svn:mergeinfo changed
/pjproject/trunk (added) merged: 5209,5212-5234,5237-5253,5255,5257-5292,5294-5297,5299-5332,5334-5394,5396-5438,5440-5469,5471-5496,5498-5510
- Property svn:mergeinfo changed
-
pjproject/branches/projects/uwp/pjnath/src/pjnath-test/test.c
r4728 r5513 20 20 #include "test.h" 21 21 #include <pjlib.h> 22 #include <pj/compat/socket.h> 22 23 23 24 void app_perror(const char *msg, pj_status_t rc) … … 29 30 pj_strerror(rc, errbuf, sizeof(errbuf)); 30 31 PJ_LOG(1,("test", "%s: [pj_status_t=%d] %s", msg, rc, errbuf)); 32 } 33 34 /* Set socket to nonblocking. */ 35 void app_set_sock_nb(pj_sock_t sock) 36 { 37 #if defined(PJ_WIN32) && PJ_WIN32!=0 || \ 38 defined(PJ_WIN64) && PJ_WIN64 != 0 || \ 39 defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE!=0 40 u_long value = 1; 41 ioctlsocket(sock, FIONBIO, &value); 42 #else 43 pj_uint32_t value = 1; 44 ioctl(sock, FIONBIO, &value); 45 #endif 31 46 } 32 47
Note: See TracChangeset
for help on using the changeset viewer.