Gadver
This commit is contained in:
parent
92799e5851
commit
4c0e4d5c7e
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ 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;}
|
||||||
int r = 0;
|
int r = 0;
|
||||||
r = DDV_iread(buffer + sofar,count-sofar,sock);
|
r = DDV_read(buffer + sofar,count-sofar,sock);
|
||||||
fprintf(stderr, "Reading %i/%i, read %i, at %i\n", count, sofar, r, buffer+sofar);
|
fprintf(stderr, "Reading %i/%i, read %i, at %i\n", count, sofar, r, buffer+sofar);
|
||||||
if (r < 0){
|
if (r < 0){
|
||||||
if (errno != EWOULDBLOCK){
|
if (errno != EWOULDBLOCK){
|
||||||
|
|
Loading…
Add table
Reference in a new issue