Changeset 153 for pjproject/trunk/pjlib/src/pjlib-test/util.c
- Timestamp:
- Feb 8, 2006 11:14:03 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pjlib-test/util.c
r65 r153 51 51 return rc; 52 52 53 #if PJ_HAS_TCP 53 54 if (type == PJ_SOCK_STREAM) { 54 55 rc = pj_sock_listen(sock, 5); … … 56 57 return rc; 57 58 } 59 #endif 58 60 59 61 *ptr_sock = sock; … … 95 97 96 98 /* For TCP, listen the socket. */ 99 #if PJ_HAS_TCP 97 100 if (type == PJ_SOCK_STREAM) { 98 101 rc = pj_sock_listen(sock[SERVER], PJ_SOMAXCONN); … … 100 103 goto on_error; 101 104 } 105 #endif 102 106 103 107 /* Connect client socket. */ … … 108 112 109 113 /* For TCP, must accept(), and get the new socket. */ 114 #if PJ_HAS_TCP 110 115 if (type == PJ_SOCK_STREAM) { 111 116 pj_sock_t newserver; … … 119 124 sock[SERVER] = newserver; 120 125 } 126 #endif 121 127 122 128 *serverfd = sock[SERVER];
Note: See TracChangeset
for help on using the changeset viewer.