diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2001-01-26 20:27:23 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2001-01-26 20:27:23 +0000 |
commit | 2f1652a6e7b6aebcb80bf7a42e9414706e1c9b8a (patch) | |
tree | 8f462b23609d1be2e7f594c02a082d97086755dd /ace/SOCK_Dgram_Mcast.cpp | |
parent | 22487837879862e52b74dab026ea7683fc097329 (diff) | |
download | ATCD-2f1652a6e7b6aebcb80bf7a42e9414706e1c9b8a.tar.gz |
ChangeLogTag:Fri Jan 26 11:18:15 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
Diffstat (limited to 'ace/SOCK_Dgram_Mcast.cpp')
-rw-r--r-- | ace/SOCK_Dgram_Mcast.cpp | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/ace/SOCK_Dgram_Mcast.cpp b/ace/SOCK_Dgram_Mcast.cpp index ef7f2446809..63c211b4811 100644 --- a/ace/SOCK_Dgram_Mcast.cpp +++ b/ace/SOCK_Dgram_Mcast.cpp @@ -68,13 +68,22 @@ ACE_SOCK_Dgram_Mcast::open (const ACE_Addr &mcast_addr, return -1; #endif /* SO_REUSEPORT */ - // Create an address to bind the socket to. - ACE_INET_Addr local; +#if 0 + // @@ Revert this code if the following call to shared_open() fails... + // Create an address to bind the socket to. + ACE_INET_Addr local; + + if (local.set (this->mcast_addr_.get_port_number ()) == -1) + return -1; + else if (ACE_SOCK_Dgram::shared_open (local, + protocol_family) == -1) + return -1; + } +#endif /* 0 */ - if (local.set (this->mcast_addr_.get_port_number ()) == -1) - return -1; - else if (ACE_SOCK_Dgram::shared_open (local, - protocol_family) == -1) + // Create an address to bind the socket to. + if (ACE_SOCK_Dgram::shared_open (this->mcast_addr_, + protocol_family) == -1) return -1; } |