2
Copyright (c) 2007-2009 by Jakob Schroeter <js@camaya.net>
3
This file is part of the gloox library. http://camaya.net/gloox
5
This software is distributed under a license. The full license
6
agreement can be found in the file LICENSE in this distribution.
7
This software may not be copied, modified, sold or distributed
8
other than expressed in the named license agreement.
10
This software is distributed without any warranty.
15
#ifndef CONNECTIONHANDLER_H__
16
#define CONNECTIONHANDLER_H__
18
#include "connectionbase.h"
24
* @brief This is an abstract base class to receive incoming connection attempts. Do not
25
* confuse this with ConnectionListener, which is used with XMPP streams and has a
26
* completely different meaning.
28
* You should not need to use this class directly.
30
* @author Jakob Schroeter <js@camaya.net>
33
class GLOOX_API ConnectionHandler
39
virtual ~ConnectionHandler() {}
42
* This function is called to receive an incoming connection.
43
* @param server The server that the connection was made to.
44
* @param connection The incoming connection.
46
virtual void handleIncomingConnection( ConnectionBase* server, ConnectionBase* connection ) = 0;
52
#endif // CONNECTIONHANDLER_H__