Changeset 24298
- Timestamp:
- 10/14/13 14:33:42 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/sock.h
r24287 r24298 585 585 } 586 586 587 int getchunkedlen(int sock, int timeout) 588 { 587 unsigned long getchunkedlen(int sock, int timeout) 588 { 589 printf("1111111111\n"); 590 unsigned long len = 0; 589 591 int ret = 0, end = 0;; 590 592 char chunked[16] = {'\0'}; … … 601 603 break; 602 604 } 603 605 printf("222222222\n"); 604 606 if(c == ';') break; 605 607 606 608 chunked[chunkedid] = c; 609 printf("333333333\n"); 607 610 chunkedid++; 608 611 if(chunkedid > 2 && c == '\n') 609 612 break; 610 613 } 611 612 return(strtol(chunked, NULL, 16)); 614 printf("8888888\n"); 615 len = strtol(chunked, NULL, 16); 616 printf("999999999\n"); 617 debug(99, "chunkedlen=%ul", len); 618 return len; 613 619 } 614 620
Note: See TracChangeset
for help on using the changeset viewer.