Changeset 1405 for pjproject/trunk/pjlib/src/pjlib-test/util.c
- Timestamp:
- Jul 20, 2007 8:08:30 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pjlib-test/util.c
r974 r1405 54 54 55 55 #if PJ_HAS_TCP 56 if (type == PJ_SOCK_STREAM) {56 if (type == pj_SOCK_STREAM()) { 57 57 rc = pj_sock_listen(sock, 5); 58 58 if (rc != PJ_SUCCESS) … … 87 87 /* Retry bind */ 88 88 pj_bzero(&addr, sizeof(addr)); 89 addr.sin_family = PJ_AF_INET;89 addr.sin_family = pj_AF_INET(); 90 90 for (i=0; i<5; ++i) { 91 91 addr.sin_port = pj_htons(port++); … … 100 100 /* For TCP, listen the socket. */ 101 101 #if PJ_HAS_TCP 102 if (type == PJ_SOCK_STREAM) {102 if (type == pj_SOCK_STREAM()) { 103 103 rc = pj_sock_listen(sock[SERVER], PJ_SOMAXCONN); 104 104 if (rc != PJ_SUCCESS) … … 115 115 /* For TCP, must accept(), and get the new socket. */ 116 116 #if PJ_HAS_TCP 117 if (type == PJ_SOCK_STREAM) {117 if (type == pj_SOCK_STREAM()) { 118 118 pj_sock_t newserver; 119 119
Note: See TracChangeset
for help on using the changeset viewer.