From 81621b44f76b50b384bb6077bea875736ac717c7 Mon Sep 17 00:00:00 2001 From: schmidt Date: Sat, 12 Apr 1997 17:27:41 +0000 Subject: *** empty log message *** --- examples/ASX/Event_Server/Transceiver/transceiver.cpp | 5 ++--- examples/Connection/blocking/SPIPE-connector.cpp | 6 +++++- examples/Connection/misc/test_upipe.cpp | 6 +++++- 3 files changed, 12 insertions(+), 5 deletions(-) (limited to 'examples') diff --git a/examples/ASX/Event_Server/Transceiver/transceiver.cpp b/examples/ASX/Event_Server/Transceiver/transceiver.cpp index 44ebbf10ebb..eef5248ee11 100644 --- a/examples/ASX/Event_Server/Transceiver/transceiver.cpp +++ b/examples/ASX/Event_Server/Transceiver/transceiver.cpp @@ -194,10 +194,9 @@ main (int argc, char *argv[]) // Establish the connection. ACE_Connector connector; - Event_Transceiver transceiver; + Event_Transceiver transceiver, *tp = &transceiver; - if (connector.connect (&transceiver, - ACE_INET_Addr (port_number, host_name)) == -1) + if (connector.connect (tp, ACE_INET_Addr (port_number, host_name)) == -1) ACE_ERROR_RETURN ((LM_ERROR, "%p\n", host_name), 1); // Run event loop until either the event server shuts down or we get diff --git a/examples/Connection/blocking/SPIPE-connector.cpp b/examples/Connection/blocking/SPIPE-connector.cpp index 9a631de8e58..6520f1136bf 100644 --- a/examples/Connection/blocking/SPIPE-connector.cpp +++ b/examples/Connection/blocking/SPIPE-connector.cpp @@ -116,8 +116,12 @@ IPC_Client::init (int argc, char *argv[]) ACE_DEBUG ((LM_DEBUG, "Opening %s\n", rendezvous_)); + Peer_Handler *ph; + + ACE_NEW_RETURN (ph, Peer_Handler (iterations_), -1); + // Connect to the peer, reusing the local addr if necessary. - if (this->connect (new Peer_Handler (iterations_), + if (this->connect (ph, ACE_SPIPE_Addr (rendezvous_), ACE_Synch_Options::defaults, *((ACE_SPIPE_Addr *) &ACE_Addr::sap_any), diff --git a/examples/Connection/misc/test_upipe.cpp b/examples/Connection/misc/test_upipe.cpp index eb8ca0431b8..eeaffddd864 100644 --- a/examples/Connection/misc/test_upipe.cpp +++ b/examples/Connection/misc/test_upipe.cpp @@ -140,7 +140,11 @@ public: ACE_UPIPE_Addr remote_addr (r_addr); - return this->connect (new Client_Service (this->thr_mgr_), remote_addr); + Client_Service *cs; + + ACE_NEW_RETURN (cs, Client_Service (this->thr_mgr_), -1); + + return this->connect (cs, remote_addr); } private: -- cgit v1.2.1