|
|
@ -757,6 +757,10 @@ float get_entropy (const u8 *buf, const int len)
|
|
|
|
return entropy;
|
|
|
|
return entropy;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if defined (_WIN)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
|
|
|
|
int select_read_timeout (int sockfd, const int sec)
|
|
|
|
int select_read_timeout (int sockfd, const int sec)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
struct timeval tv;
|
|
|
|
struct timeval tv;
|
|
|
@ -787,6 +791,8 @@ int select_write_timeout (int sockfd, const int sec)
|
|
|
|
return select (sockfd + 1, NULL, &fds, NULL, &tv);
|
|
|
|
return select (sockfd + 1, NULL, &fds, NULL, &tv);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if defined (_WIN)
|
|
|
|
#if defined (_WIN)
|
|
|
|
|
|
|
|
|
|
|
|
int select_read_timeout_console (const int sec)
|
|
|
|
int select_read_timeout_console (const int sec)
|
|
|
|