我有下一个代码:
int main()
{
OwnSelect(23, FD_READ | FD_WRITE); // <---- Several arguments as one
return 0;
}
int OwnSelect(SOCKET s, long lNetworkEvents)
{
// How can i check that FD_READ has been passed?
if(lNetworkEvents == FD_READ)
{
// never here
}
return 0;
}
无论是否已通过 FD_READ 传递了另一个 FD,我如何检查是否已通过 FD_READ。谢谢!