mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Add a simple FD_Set wrapper/helper class.
This commit is contained in:
parent
cf66bd8b69
commit
59c54a0fc6
16 changed files with 149 additions and 90 deletions
|
@ -218,8 +218,8 @@ void PktSrc::Done()
|
|||
Close();
|
||||
}
|
||||
|
||||
void PktSrc::GetFds(std::vector<int>* read, std::vector<int>* write,
|
||||
std::vector<int>* except)
|
||||
void PktSrc::GetFds(iosource::FD_Set* read, iosource::FD_Set* write,
|
||||
iosource::FD_Set* except)
|
||||
{
|
||||
if ( pseudo_realtime )
|
||||
{
|
||||
|
@ -230,7 +230,7 @@ void PktSrc::GetFds(std::vector<int>* read, std::vector<int>* write,
|
|||
}
|
||||
|
||||
if ( IsOpen() && props.selectable_fd >= 0 )
|
||||
read->push_back(props.selectable_fd);
|
||||
read->Insert(props.selectable_fd);
|
||||
}
|
||||
|
||||
double PktSrc::NextTimestamp(double* local_network_time)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue