Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Selector based server with UDP?

Moderators: larsivi kris

Posted: 02/23/07 01:55:20

Hi, I think I understand how to use a selector with a ServerSocket from the example selector.d}}}. But is there something like a ServerSocket that will listen for UDP connections and? I'm thinking that I'll have to create a class pretty much the same as ServerSocket but for passing in SocketType.DGRAM into the Socket created in the constructor and returning a DatagramConduit from accept().. umm, am I on the right track?

Author Message

Posted: 02/26/07 09:20:50

There's perhaps a dozen different ways to skin that particular cat. You don't need selector to do that kind of thing, but it is certainly one of the strategies.