Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Sep 1999 10:51:31 +0200
From:      Pierre Beyssac <beyssac@enst.fr>
To:        "N. C. Hong" <nchong@uswest.net>, freebsd-net@FreeBSD.ORG
Subject:   Re: FreeBSD 3.2 bug when calling connect on a UDP socket?
Message-ID:  <19990923105131.A99097@enst.fr>
In-Reply-To: <000201bf058f$b27c0e40$0200000a@gchunghome>; from N. C. Hong on Wed, Sep 22, 1999 at 11:48:51PM -0700
References:  <000201bf058f$b27c0e40$0200000a@gchunghome>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 22, 1999 at 11:48:51PM -0700, N. C. Hong wrote:
> On FreeBSD 3.2, when running two instances of the following program, the
> second instance fails during the connect call. It works fine on Windows NT.
> I haven't tested on other platforms. I don't see any reason why two UDP
> sockets bound to the same port on the same host can't both be "connected" to
> a multicast endpoint.

Apparently, you haven't given any indication to the system that
you want to connect to a multicast endpoint. You have to use socket
option IP_ADD_MEMBERSHIP. See man ip(4).
-- 
Pierre Beyssac		pb@enst.fr


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990923105131.A99097>