summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-04-10 01:35:04 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-04-10 01:35:04 +0000
commitb87fa8b5efdc9ab38dddeb3f026d392c8eb97626 (patch)
treed293f7914f377cc688f5a51687fc6bb4182471e0 /examples
parent45d38bdfbe06b3cb7a25124dd25fcea23a14c4f0 (diff)
downloadATCD-b87fa8b5efdc9ab38dddeb3f026d392c8eb97626.tar.gz
*** empty log message ***
Diffstat (limited to 'examples')
-rw-r--r--examples/Logger/simple-server/Logging_Acceptor.cpp2
-rw-r--r--examples/Logger/simple-server/Logging_Handler.cpp3
-rw-r--r--examples/Logger/simple-server/Logging_Handler.h2
3 files changed, 4 insertions, 3 deletions
diff --git a/examples/Logger/simple-server/Logging_Acceptor.cpp b/examples/Logger/simple-server/Logging_Acceptor.cpp
index 96ef694d4a3..714602fee40 100644
--- a/examples/Logger/simple-server/Logging_Acceptor.cpp
+++ b/examples/Logger/simple-server/Logging_Acceptor.cpp
@@ -56,7 +56,7 @@ Logging_Acceptor::handle_input (ACE_HANDLE)
// Accept the connection from a client client daemon.
- if (this->peer_acceptor_.accept (*svc_handler) == -1)
+ if (this->peer_acceptor_.accept (svc_handler->peer ()) == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p", "accept failed"), -1);
else if (svc_handler->open () == -1)
svc_handler->close ();
diff --git a/examples/Logger/simple-server/Logging_Handler.cpp b/examples/Logger/simple-server/Logging_Handler.cpp
index 3a5381dea7a..323f11483e1 100644
--- a/examples/Logger/simple-server/Logging_Handler.cpp
+++ b/examples/Logger/simple-server/Logging_Handler.cpp
@@ -18,7 +18,8 @@ Logging_Handler::~Logging_Handler (void)
// Extract the underlying ACE_SOCK_Stream (e.g., for purposes of
// accept()).
-Logging_Handler::operator ACE_SOCK_Stream &()
+ACE_SOCK_Stream &
+Logging_Handler::peer (void)
{
return this->cli_stream_;
}
diff --git a/examples/Logger/simple-server/Logging_Handler.h b/examples/Logger/simple-server/Logging_Handler.h
index 2d15b5a6295..0daa974b519 100644
--- a/examples/Logger/simple-server/Logging_Handler.h
+++ b/examples/Logger/simple-server/Logging_Handler.h
@@ -39,7 +39,7 @@ public:
virtual int open (void);
virtual int close (void);
- operator ACE_SOCK_Stream &();
+ ACE_SOCK_Stream &peer (void);
// Conversion operators.
protected: