diff options
author | Marc Laukien <marc@zeroc.com> | 2001-08-14 11:52:47 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-08-14 11:52:47 +0000 |
commit | 91a394a09d9684d20cfa4c941cebb6b3579b9666 (patch) | |
tree | eb99bdac118a23814e1dfcd8d4e5fc64a9c8f0cc /cpp/src/Ice/TcpAcceptor.h | |
parent | locator (diff) | |
download | ice-91a394a09d9684d20cfa4c941cebb6b3579b9666.tar.bz2 ice-91a394a09d9684d20cfa4c941cebb6b3579b9666.tar.xz ice-91a394a09d9684d20cfa4c941cebb6b3579b9666.zip |
changed directory structure
Diffstat (limited to 'cpp/src/Ice/TcpAcceptor.h')
-rw-r--r-- | cpp/src/Ice/TcpAcceptor.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/cpp/src/Ice/TcpAcceptor.h b/cpp/src/Ice/TcpAcceptor.h new file mode 100644 index 00000000000..6a6a01f933d --- /dev/null +++ b/cpp/src/Ice/TcpAcceptor.h @@ -0,0 +1,60 @@ +// ********************************************************************** +// +// Copyright (c) 2002 +// MutableRealms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +#ifndef ICE_TCP_ACCEPTOR_H +#define ICE_TCP_ACCEPTOR_H + +#include <Ice/TransceiverF.h> +#include <Ice/InstanceF.h> +#include <Ice/TraceLevelsF.h> +#include <Ice/LoggerF.h> +#include <Ice/Acceptor.h> + +#ifndef WIN32 +# include <netinet/in.h> // For struct sockaddr_in +#endif + +namespace IceInternal +{ + +class TcpEndpoint; + +class TcpAcceptor : public Acceptor +{ +public: + + virtual int fd(); + virtual void close(); + virtual void shutdown(); + virtual void listen(); + virtual TransceiverPtr accept(int); + virtual std::string toString() const; + + virtual bool equivalent(const std::string&, int) const; + +private: + + TcpAcceptor(const InstancePtr&, int); + virtual ~TcpAcceptor(); + friend class TcpEndpoint; + + InstancePtr _instance; + int _fd; + int _backlog; + struct sockaddr_in _addr; +#ifndef ICE_NO_TRACE + TraceLevelsPtr _traceLevels; + ::Ice::LoggerPtr _logger; +#endif +}; + +} + +#endif |