Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Feb 2002 21:34:21 +0000
From:      Bap <bap@a1.org.uk>
To:        freebsd-stable@freebsd.org
Subject:   Re: Multicast bind problem
Message-ID:  <3C6ADBDD.176B9C5F@a1.org.uk>
References:  <20020213225726.A79566@rucus.ru.ac.za>

next in thread | previous in thread | raw e-mail | index | archive | help
David Siebörger wrote:

> Bap <bap@a1.org.uk> wrote:
> > I am trying to start 2 processes on my box 4.5-RC FreeBSD 4.5-RC #3: Thu
> > Jan 24 19:18:28 GMT 2002
> >
> > The 1st one starts no problem, then the 2nd one exits with a bind
> > exception (Address already in use)
> >
> > The processes are both trying to bind to a multicast socket (actually
> > SUNs JINI Reggie and LookupBrowser)
>
> If two sockets are to bind the same local port, they need to have the
> SO_REUSEADDR or SO_REUSEPORT socket options set.  For example,
>
>   int one=1;
>   setsockopt (s, SOL_SOCKET, SO_REUSEADDR, &one, sizeof (one));
>
> See getsockopt(2) for further details.
>
> I'm afraid I know nothing about the specific JINI programs you
> mention, but I'd guess that they aren't setting those socket options.
>
> --
> David Siebörger
> drs-stable@rucus.ru.ac.za
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message

Thanks for the info, but, I doubt that the java classes from Sun which should
work in any jvm, would have incorrect socket options (I've used these exact
classes on Solaris with no problems)
I don't have the java source here, so can't check.
The only places I can think where something has gone wrong is my OS config or
the linux jdk I'm running

Are there any more suggestions?

TIA
Bap.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C6ADBDD.176B9C5F>