Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Sep 1999 10:51:31 +0200
From:      Pierre Beyssac <>
To:        "N. C. Hong" <>, freebsd-net@FreeBSD.ORG
Subject:   Re: FreeBSD 3.2 bug when calling connect on a UDP socket?
Message-ID:  <>
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

To Unsubscribe: send mail to
with "unsubscribe freebsd-net" in the body of the message

Want to link to this message? Use this URL: <>