Changeset 1405 for pjproject/trunk/pjlib/src/pjlib-test/sock_perf.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/sock_perf.c
r1238 r1405 63 63 64 64 /* Create producer-consumer pair. */ 65 rc = app_socketpair( PJ_AF_INET, sock_type, 0, &consumer, &producer);65 rc = app_socketpair(pj_AF_INET(), sock_type, 0, &consumer, &producer); 66 66 if (rc != PJ_SUCCESS) { 67 67 app_perror("...error: create socket pair", rc); … … 106 106 } 107 107 if ((pj_size_t)part_received != buf_size-received) { 108 if (sock_type != PJ_SOCK_STREAM) {108 if (sock_type != pj_SOCK_STREAM()) { 109 109 PJ_LOG(3,("", "...error: expecting %u bytes, got %u bytes", 110 110 buf_size-received, part_received)); … … 166 166 #if !defined(PJ_SYMBIAN) || PJ_SYMBIAN==0 167 167 /* Benchmarking UDP */ 168 rc = sock_producer_consumer( PJ_SOCK_DGRAM, 512, LOOP, &bandwidth);168 rc = sock_producer_consumer(pj_SOCK_DGRAM(), 512, LOOP, &bandwidth); 169 169 if (rc != 0) return rc; 170 170 PJ_LOG(3,("", "....bandwidth UDP = %d KB/s", bandwidth)); … … 172 172 173 173 /* Benchmarking TCP */ 174 rc = sock_producer_consumer( PJ_SOCK_STREAM, 512, LOOP, &bandwidth);174 rc = sock_producer_consumer(pj_SOCK_STREAM(), 512, LOOP, &bandwidth); 175 175 if (rc != 0) return rc; 176 176 PJ_LOG(3,("", "....bandwidth TCP = %d KB/s", bandwidth));
Note: See TracChangeset
for help on using the changeset viewer.