diff options
author | Phil Mesnier <mesnier_p@ociweb.com> | 2007-06-04 03:05:07 +0000 |
---|---|---|
committer | Phil Mesnier <mesnier_p@ociweb.com> | 2007-06-04 03:05:07 +0000 |
commit | 9f87e2760482976606e00e500707388cec0223b1 (patch) | |
tree | 2903dc235d44fe5d3a52482f86b19e5494a712c2 /TAO/orbsvcs | |
parent | 5f4b0633e12e480e22658917f9f20a6aea9a0e3b (diff) | |
download | ATCD-9f87e2760482976606e00e500707388cec0223b1.tar.gz |
Mon Jun 4 02:56:02 UTC 2007 Phil Mesnier <mesnier_p@ociweb.com>
Diffstat (limited to 'TAO/orbsvcs')
-rw-r--r-- | TAO/orbsvcs/tests/EC_MT_Mcast/MCast.cpp | 3 | ||||
-rw-r--r-- | TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp | 8 | ||||
-rw-r--r-- | TAO/orbsvcs/tests/Event/UDP/sender.cpp | 3 |
3 files changed, 9 insertions, 5 deletions
diff --git a/TAO/orbsvcs/tests/EC_MT_Mcast/MCast.cpp b/TAO/orbsvcs/tests/EC_MT_Mcast/MCast.cpp index 3a5e7cc76f1..826de5e8304 100644 --- a/TAO/orbsvcs/tests/EC_MT_Mcast/MCast.cpp +++ b/TAO/orbsvcs/tests/EC_MT_Mcast/MCast.cpp @@ -168,7 +168,8 @@ main (int argc, char* argv[]) ACE_NEW_RETURN (endpointptr, TAO_ECG_UDP_Out_Endpoint, 0); TAO_ECG_Refcounted_Endpoint endpoint (endpointptr); - if (endpoint->dgram ().open (ACE_Addr::sap_any) == -1) + if (endpoint->dgram ().open (ACE_Addr::sap_any, + udp_addr.get_type()) == -1) { ACE_ERROR_RETURN ((LM_ERROR, "Cannot open send endpoint\n"), 1); diff --git a/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp b/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp index e89ab07ba61..314938f9f7e 100644 --- a/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp +++ b/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp @@ -235,14 +235,16 @@ ECM_Driver::close_federations (void) void ECM_Driver::open_senders (RtecEventChannelAdmin::EventChannel_ptr ec) { - if (this->endpoint_.dgram ().open (ACE_Addr::sap_any) == -1) + ACE_INET_Addr ignore_from; + this->endpoint_.dgram ().get_local_addr (ignore_from); + + if (this->endpoint_.dgram ().open (ACE_Addr::sap_any, + ignore_from.get_type()) == -1) { // @@ TODO throw an application specific exception. throw CORBA::COMM_FAILURE (); } - ACE_INET_Addr ignore_from; - this->endpoint_.dgram ().get_local_addr (ignore_from); ACE_TCHAR buffer[256]; ignore_from.addr_to_string (buffer,256); ACE_DEBUG ((LM_DEBUG, "(%P) ECM_Driver::open_senders - " diff --git a/TAO/orbsvcs/tests/Event/UDP/sender.cpp b/TAO/orbsvcs/tests/Event/UDP/sender.cpp index 73b0b9d8fcc..a00d089d570 100644 --- a/TAO/orbsvcs/tests/Event/UDP/sender.cpp +++ b/TAO/orbsvcs/tests/Event/UDP/sender.cpp @@ -135,7 +135,8 @@ main (int argc, char* argv[]) // We need a local socket to send the data, open it and check // that everything is OK: TAO_ECG_Refcounted_Endpoint endpoint(new TAO_ECG_UDP_Out_Endpoint); - if (endpoint->dgram ().open (ACE_Addr::sap_any) == -1) + if (endpoint->dgram ().open (ACE_Addr::sap_any, + udp_addr.get_type()) == -1) { ACE_ERROR_RETURN ((LM_ERROR, "Cannot open send endpoint\n"), 1); |