Debugging RTMP connector, compile warning in Buffer fixed
This commit is contained in:
parent
d6f6d21af1
commit
eaa1c7c26f
3 changed files with 16 additions and 2 deletions
|
@ -225,12 +225,23 @@ int main(int argc, char ** argv){
|
|||
if ((rec_cnt - rec_window_at > rec_window_size) || (getNowMS() - lastcheck > 1)){
|
||||
rec_window_at = rec_cnt;
|
||||
SendCTL(3, rec_cnt);//send ack (msg 3)
|
||||
lastcheck = getNowMS();
|
||||
}
|
||||
}
|
||||
close(CONN_fd);
|
||||
if (inited) close(ss);
|
||||
#if DEBUG >= 1
|
||||
if (All_Hell_Broke_Loose){fprintf(stderr, "All Hell Broke Loose\n");}
|
||||
fprintf(stderr, "User %i disconnected.\n", CONN_fd);
|
||||
if (inited){
|
||||
fprintf(stderr, "Status was: inited\n");
|
||||
}else{
|
||||
if (ready4data){
|
||||
fprintf(stderr, "Status was: ready4data\n");
|
||||
}else{
|
||||
fprintf(stderr, "Status was: connected\n");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return 0;
|
||||
}//main
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue