Hi,
> I have edited your code. It is working fine, except for few changes.
Thanks. However, my original email was essentially a bug report, not a
request for help with my code. I didn't actually say "bug report" because
so many bug reports end up just being problems with people's code.
Hi Dustin Lang,
I have edited your code. It is working fine,
except for few changes.
The sender to the same port you are listening to
else you will get a time out error.
Instead of socket.getLocalAddress().getHostAddress()
use InetAddress. getLocalhost(). The former gives 0.0.0.0.
In the C world you need to set the SO_REUSEADDR option on
the datagram (UDP) socket.
The setReuseAddress() has been added to JDK 1.4 for this purpose.
I'm not sure how you can go about this in JDK1.2.
Alexander
On Sun, Sep 23, 2001 at 09:56:25PM -0700, Dustin Lang wrote:
>
> Hi,
>
> I checked