Menu

#4 Support of dynamic port allocation

v2.0
open
nobody
I/O (3)
5
2006-08-01
2006-08-01
No

Instead of explicity setting the telnetd server port
with help of a <listener-name>.port property, a
listener could dynamically allocate any free port if
<listener-name>.port = 0.

To make this work, two lines of code in
PortListener.java have to be added:

166a166,167
> if (m_Port == 0)
> m_Port = m_ServerSocket.getLocalPort();

If this change is implemented, i guess getPort() method
would make sense.

Any comments?

--
Roland

Discussion


Log in to post a comment.