Changeset 1405 for pjproject/trunk/pjlib/src/pjlib-test/select.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/select.c
r974 r1405 113 113 114 114 // Create two UDP sockets. 115 rc = pj_sock_socket( PJ_AF_INET, PJ_SOCK_DGRAM, 0, &udp1);115 rc = pj_sock_socket( pj_AF_INET(), pj_SOCK_DGRAM(), 0, &udp1); 116 116 if (rc != PJ_SUCCESS) { 117 117 app_perror("...error: unable to create socket", rc); 118 118 status=-10; goto on_return; 119 119 } 120 rc = pj_sock_socket( PJ_AF_INET, PJ_SOCK_DGRAM, 0, &udp2);120 rc = pj_sock_socket( pj_AF_INET(), pj_SOCK_DGRAM(), 0, &udp2); 121 121 if (udp2 == PJ_INVALID_SOCKET) { 122 122 app_perror("...error: unable to create socket", rc); … … 126 126 // Bind one of the UDP socket. 127 127 pj_bzero(&udp_addr, sizeof(udp_addr)); 128 udp_addr.sin_family = PJ_AF_INET;128 udp_addr.sin_family = pj_AF_INET(); 129 129 udp_addr.sin_port = UDP_PORT; 130 130 udp_addr.sin_addr = pj_inet_addr(pj_cstr(&s, "127.0.0.1"));
Note: See TracChangeset
for help on using the changeset viewer.