Changeset 1275 for pjproject/trunk/pjnath/src/pjstun-client/client_main.c
- Timestamp:
- May 15, 2007 10:42:56 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjstun-client/client_main.c
r1266 r1275 108 108 { 109 109 pj_stun_relay_addr_attr *ar; 110 pj_stun_lifetime_attr *al; 111 112 al = (pj_stun_lifetime_attr*) 113 pj_stun_msg_find_attr(response, 114 PJ_STUN_ATTR_LIFETIME, 0); 115 if (!al) { 116 PJ_LOG(1,(THIS_FILE, "Error: LIFETIME attribute not present")); 117 return; 118 } 110 119 111 120 ar = (pj_stun_relay_addr_attr*) … … 120 129 } else { 121 130 pj_memset(&g.relay_addr, 0, sizeof(g.relay_addr)); 131 } 132 133 if (al->value == 0) { 134 PJ_LOG(3,(THIS_FILE, "Relay deallocated")); 122 135 } 123 136 } … … 633 646 g.data = g.data_buf; 634 647 635 while((c=pj_getopt_long(argc,argv, "r:u:p: hF", long_options, &opt_id))!=-1) {648 while((c=pj_getopt_long(argc,argv, "r:u:p:N:hF", long_options, &opt_id))!=-1) { 636 649 switch (c) { 637 650 case 'r':
Note: See TracChangeset
for help on using the changeset viewer.