mirror of
https://github.com/lxsang/antd-wvnc-plugin.git
synced 2024-12-27 04:18:22 +01:00
compatibility fix
This commit is contained in:
parent
29830cf36f
commit
e07770a606
8
wvnc.c
8
wvnc.c
@ -491,7 +491,7 @@ void open_session(void *data, const char *addr)
|
|||||||
}
|
}
|
||||||
process(user_data, 0);
|
process(user_data, 0);
|
||||||
//LOG("ENd process \n");
|
//LOG("ENd process \n");
|
||||||
int status = WaitForMessage(user_data->vncl, 500); //500
|
int status = WaitForMessage(user_data->vncl, 200); //500
|
||||||
if (status < 0)
|
if (status < 0)
|
||||||
{
|
{
|
||||||
if (user_data->vncl)
|
if (user_data->vncl)
|
||||||
@ -614,7 +614,7 @@ void handle(void *cl, const char *m, const char *rqp, dictionary rq)
|
|||||||
// set timeout to socket
|
// set timeout to socket
|
||||||
struct timeval timeout;
|
struct timeval timeout;
|
||||||
timeout.tv_sec = 0;
|
timeout.tv_sec = 0;
|
||||||
timeout.tv_usec = 500;
|
timeout.tv_usec = 200;
|
||||||
|
|
||||||
if (setsockopt(((antd_client_t *)cl)->sock, SOL_SOCKET, SO_RCVTIMEO, (char *)&timeout, sizeof(timeout)) < 0)
|
if (setsockopt(((antd_client_t *)cl)->sock, SOL_SOCKET, SO_RCVTIMEO, (char *)&timeout, sizeof(timeout)) < 0)
|
||||||
perror("setsockopt failed\n");
|
perror("setsockopt failed\n");
|
||||||
@ -652,3 +652,7 @@ void handle(void *cl, const char *m, const char *rqp, dictionary rq)
|
|||||||
}
|
}
|
||||||
LOG("%s\n", "EXIT Streaming..");
|
LOG("%s\n", "EXIT Streaming..");
|
||||||
}
|
}
|
||||||
|
void init()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user