C++;等效于java.nio.channels.Selector > C++是否具有等同于或>强>的其他机制?

C++;等效于java.nio.channels.Selector > C++是否具有等同于或>强>的其他机制?,c++,sockets,C++,Sockets,C++中有你可以使用的(Linux)。 也在 它们几乎一样,手册页上有一个例子,可以在网上找到更多。java.nio.channels.Selector做什么?我建议在Windows和*nix上都定义poll或epoll而不是selectselect,而poll和epoll只有*nix。我相信Windows Vista和更高版本都有自己的poll():WSAPoll()

C++中有你可以使用的(Linux)。 也在


它们几乎一样,手册页上有一个例子,可以在网上找到更多。

java.nio.channels.Selector做什么?我建议在Windows和*nix上都定义poll或epoll而不是selectselect,而poll和epoll只有*nix。我相信Windows Vista和更高版本都有自己的poll():WSAPoll()