connectiontcpserver.h

00001 /*
00002   Copyright (c) 2007-2009 by Jakob Schroeter <js@camaya.net>
00003   This file is part of the gloox library. http://camaya.net/gloox
00004 
00005   This software is distributed under a license. The full license
00006   agreement can be found in the file LICENSE in this distribution.
00007   This software may not be copied, modified, sold or distributed
00008   other than expressed in the named license agreement.
00009 
00010   This software is distributed without any warranty.
00011 */
00012 
00013 
00014 #ifndef CONNECTIONTCPSERVER_H__
00015 #define CONNECTIONTCPSERVER_H__
00016 
00017 #include "gloox.h"
00018 #include "connectiontcpbase.h"
00019 #include "logsink.h"
00020 
00021 #include <string>
00022 
00023 namespace gloox
00024 {
00025 
00026   class ConnectionHandler;
00027 
00036   class GLOOX_API ConnectionTCPServer : public ConnectionTCPBase
00037   {
00038     public:
00047       ConnectionTCPServer( ConnectionHandler* ch, const LogSink& logInstance,
00048                            const std::string& ip, int port );
00049 
00053       virtual ~ConnectionTCPServer();
00054 
00055       // reimplemented from ConnectionBase
00056       virtual ConnectionError recv( int timeout = -1 );
00057 
00062       // reimplemented from ConnectionBase
00063       virtual ConnectionError connect();
00064 
00065       // reimplemented from ConnectionBase
00066       virtual ConnectionBase* newInstance() const;
00067 
00068     private:
00069       ConnectionTCPServer &operator=( const ConnectionTCPServer & );
00070 
00071       ConnectionHandler* m_connectionHandler;
00072 
00073   };
00074 
00075 }
00076 
00077 #endif // CONNECTIONTCPSERVER_H__

Generated by  doxygen 1.6.2