- Timestamp:
- Apr 22, 2007 12:48:30 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/split-3rd-party/pjnath/src/pjstun-client/client_main.c
r1152 r1210 67 67 68 68 69 static my_perror(const char *title, pj_status_t status)69 static void my_perror(const char *title, pj_status_t status) 70 70 { 71 71 char errmsg[PJ_ERR_MSG_SIZE]; … … 146 146 if (n > 0) { 147 147 if (PJ_FD_ISSET(g.sock, &readset)) { 148 charbuffer[512];148 pj_uint8_t buffer[512]; 149 149 pj_ssize_t len; 150 150 pj_sockaddr_in addr; … … 427 427 &g.peer_addr, sizeof(g.peer_addr)); 428 428 pj_stun_msg_add_binary_attr(tdata->pool, tdata->msg, 429 PJ_STUN_ATTR_DATA, g.data, len);429 PJ_STUN_ATTR_DATA, (pj_uint8_t*)g.data, len); 430 430 431 431 rc = pj_stun_session_send_msg(g.sess, PJ_FALSE, … … 521 521 printf("Input peer address in IP:PORT format: "); 522 522 fflush(stdout); 523 gets(addr);523 fgets(addr, sizeof(addr), stdin); 524 524 525 525 if (parse_addr(addr, &g.peer_addr) != PJ_SUCCESS) { … … 562 562 } else if (input[0]=='d' && input[1]=='t') { 563 563 printf("Input data: "); 564 gets(g.data);564 fgets(g.data, sizeof(g.data_buf), stdin); 565 565 566 566 } else if (input[0]=='p' && input[1]=='r') {
Note: See TracChangeset
for help on using the changeset viewer.