Gadver
This commit is contained in:
parent
644bda4e0d
commit
3e0cf90288
1 changed files with 1 additions and 1 deletions
|
@ -33,9 +33,9 @@ bool FLV_Isheader(char * header){
|
||||||
|
|
||||||
bool ReadUntil(char * buffer, unsigned int count, unsigned int & sofar, int sock){
|
bool ReadUntil(char * buffer, unsigned int count, unsigned int & sofar, int sock){
|
||||||
if (sofar >= count){return true;}
|
if (sofar >= count){return true;}
|
||||||
|
fprintf(stderr, "Reading %i/%i\n", sofar, count);
|
||||||
bool r = DDV_read(buffer + sofar,count-sofar,sock);
|
bool r = DDV_read(buffer + sofar,count-sofar,sock);
|
||||||
sofar = count;
|
sofar = count;
|
||||||
fprintf(stderr, "Reading %i/%i\n", sofar, count);
|
|
||||||
if (!r){
|
if (!r){
|
||||||
All_Hell_Broke_Loose = true;
|
All_Hell_Broke_Loose = true;
|
||||||
fprintf(stderr, "ReadUntil fail: %s. All Hell Broke Loose!\n", strerror(errno));
|
fprintf(stderr, "ReadUntil fail: %s. All Hell Broke Loose!\n", strerror(errno));
|
||||||
|
|
Loading…
Add table
Reference in a new issue