connectionhandler.h
/*
Copyright (c) 2007-2023 by Jakob Schröter <js@camaya.net>
This file is part of the gloox library. http://camaya.net/gloox
This software is distributed under a license. The full license
agreement can be found in the file LICENSE in this distribution.
This software may not be copied, modified, sold or distributed
other than expressed in the named license agreement.
This software is distributed without any warranty.
*/
#ifndef CONNECTIONHANDLER_H__
#define CONNECTIONHANDLER_H__
#include "connectionbase.h"
namespace gloox
{
class GLOOX_API ConnectionHandler
{
public:
virtual ~ConnectionHandler() {}
virtual void handleIncomingConnection( ConnectionBase* server, ConnectionBase* connection ) = 0;
};
}
#endif // CONNECTIONHANDLER_H__
gloox::ConnectionBase
An abstract base class for a connection.
Definition connectionbase.h:35
gloox::ConnectionHandler
This is an abstract base class to receive incoming connection attempts. Do not confuse this with Conn...
Definition connectionhandler.h:34
gloox::ConnectionHandler::~ConnectionHandler
virtual ~ConnectionHandler()
Definition connectionhandler.h:39
gloox::ConnectionHandler::handleIncomingConnection
virtual void handleIncomingConnection(ConnectionBase *server, ConnectionBase *connection)=0
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28