diff options
Diffstat (limited to 'cpp/test/Ice/background/Acceptor.cpp')
-rw-r--r-- | cpp/test/Ice/background/Acceptor.cpp | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/cpp/test/Ice/background/Acceptor.cpp b/cpp/test/Ice/background/Acceptor.cpp new file mode 100644 index 00000000000..d7158bdc4d4 --- /dev/null +++ b/cpp/test/Ice/background/Acceptor.cpp @@ -0,0 +1,54 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#include <Acceptor.h> +#include <Transceiver.h> + +using namespace std; + +SOCKET +Acceptor::fd() +{ + return _acceptor->fd(); +} + +void +Acceptor::close() +{ + _acceptor->close(); +} + +void +Acceptor::listen() +{ + _acceptor->listen(); +} + +IceInternal::TransceiverPtr +Acceptor::accept(int timeout) +{ + return new Transceiver(_acceptor->accept(timeout)); +} + +void +Acceptor::connectToSelf() +{ + _acceptor->connectToSelf(); +} + +string +Acceptor::toString() const +{ + return _acceptor->toString(); +} + +Acceptor::Acceptor(const IceInternal::AcceptorPtr& acceptor) : _acceptor(acceptor) +{ +} + |