Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想要的只是同时从多个套接字(少于 10 个)读取。无论哪个套接字有要读取的内容,我都会读取数据并将其变形为消息并将该消息放入队列中。
例如,使用select(). 我可以将这些套接字(少于 10 个)添加到 aFD_SET和select()那个集合上。我怎么能在 C# 中做到这一点?解决方案越简单越好。
select()
FD_SET
正如ja_mesa所指出的,您正在寻找Socket.Select Method。