Enrique Rodriguez schrieb:
Trustin Lee wrote:
...
After all, I don't see that broadcast doesn't work with NIO. What
doesn't work with NIO, however, (at least as I see it) is multicast. But
multicast is a totally different beast and not required for DHCP.
So, well, the question is: as this sounds too good, to be true - what
did I miss?

It didn't work when Enrique tried to implement broadcasting with MINA last
time.  If it works, it's a very great news.  :)

I haven't tried in a while, so that is great news. Some of your code example is new API. New since last January 2005 when I last looked, that is. We need more eyes on these protocols so I'll be happy for any work that you can contribute.
while my primary goal is to implement a DHCP proxy (with "proxy" being a
misnomer, but that's the jargon, anyway) to supply additional boot-time
information in a PXE boot environment, I'll hopefully be able contribute
useful stuff for a general-purpose DHCP server.

I noticed that the code to send DHCP replies is rather complicated and
it seems that each reply leaves a lingering thread behind. Is this
necessary because MINA doesn't support the unconnected datagram mode
where the socket isn't connected to a fixed destination, and instead
each message is outfitted with a destination SocketAddress? Setting up a
connection for each reply seems rather wasteful. Shouldn't rather mina
be extended to support sending to a per-message destination socket address?

Joerg Henne

Reply via email to