Changeset 2125 for pjproject/trunk
- Timestamp:
- Jul 12, 2008 10:08:37 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjturn-client/client_main.c
r2040 r2125 134 134 pj_stun_sock_cb stun_sock_cb; 135 135 char name[] = "peer0"; 136 pj_uint16_t port; 136 137 pj_str_t server; 137 138 … … 151 152 } 152 153 153 if (o.stun_server) 154 if (o.stun_server) { 154 155 server = pj_str(o.stun_server); 155 else 156 port = PJ_STUN_PORT; 157 } else { 156 158 server = pj_str(o.srv_addr); 159 port = (pj_uint16_t)(o.srv_port?atoi(o.srv_port):PJ_STUN_PORT); 160 } 157 161 status = pj_stun_sock_start(g.peer[i].stun_sock, &server, 158 (pj_uint16_t)(o.srv_port?atoi(o.srv_port):PJ_STUN_PORT), 159 NULL); 162 port, NULL); 160 163 if (status != PJ_SUCCESS) { 161 164 my_perror("pj_stun_sock_start()", status);
Note: See TracChangeset
for help on using the changeset viewer.