Oude connector naast de nieuwe... poort nummer nieuwe is nu 1936!
This commit is contained in:
parent
cc1fdf7138
commit
27279d31c8
12 changed files with 1880 additions and 15 deletions
|
@ -97,20 +97,6 @@ bool DDV_ready(int sock){
|
|||
return (r == 1);
|
||||
}
|
||||
|
||||
int DDV_readycount(int sock){
|
||||
static char tmp[1048576];
|
||||
int preflags = fcntl(sock, F_GETFL, 0);
|
||||
int postflags = preflags | O_NONBLOCK;
|
||||
fcntl(sock, F_SETFL, postflags);
|
||||
int r = recv(sock, tmp, 1048576, MSG_PEEK);
|
||||
fcntl(sock, F_SETFL, preflags);
|
||||
if (r > 0){
|
||||
return r;
|
||||
}else{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
bool DDV_read(void * buffer, int todo, int sock){
|
||||
int sofar = 0;
|
||||
socketBlocking = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue