/**
 * @file
 * $Id$
 * $Revision$
 * $Author$
 * $Date$
 *
 * This file is part of The iWear Framework.
 *
 * The iWear Framework is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by the
 * Free Software Foundation as in version 2 of the License.

 * 
 * The iWear Framework is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * The iWear Framework; if not, write to the Free Software Foundation, Inc., 59
 * Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef __IWREMOTE_CONNECTIONDESCRIPTOR_H
#define __IWREMOTE_CONNECTIONDESCRIPTOR_H

#include <boost/intrusive_ptr.hpp>

namespace iwear
{
    namespace net
    {
class RemoteConnection;

/**
 * A ConnectionDescriptor is a class which holds the information how to connect
 * to a specific host. For more information on how the class should be used,
 * @see SocketConnectionDescriptor.
 */
class ConnectionDescriptor
{
private:
protected:
    //FIXME this needs to be replaced by just some data to connect !
    RemoteConnectionPtr remote_con;
public:
    /**
     * This returns the RemoteConnection that has been set by the connection
     * that created this Descriptor and is responsible for it.
     */
    virtual RemoteConnectionPtr get_connection( void ) { return remote_con; }

    ConnectionDescriptor( RemoteConnectionPtr r) : remote_con(r) 
    { 
	IWASSERT(r != NULL);
    }

    virtual ~ConnectionDescriptor() {}

    /**
     * This returns a set of features of the connection, like if it supports
     * ssl, or how fast it could be etc., this is a big fat @todo TODO
     */
    virtual void get_connection_features( void ) = 0;
};


}
}
#endif
