connectiontcpserver.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
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
00056 virtual ConnectionError recv( int timeout = -1 );
00057
00062
00063 virtual ConnectionError connect();
00064
00065
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__