//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project / ILMI
//
//File: ilmiarcommand.cpp
//
//Version: $Revision: 1.1 $
//
//State: $State: Exp $
//
//Date: $Date: 1998/07/08 14:18:26 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications Software and Multimedia
//
//Author:
//      Timo Pärnänen
//
//Description:
//      See corresponding header file.
//
//Copyright:
//      Copyright 1999 Helsinki University of Technology
//      ALL RIGHTS RESERVED BETWEEN JANUARY 1996 AND JUNE 1999.
//
//Licence:
//
//
//History: 

#include "pf/debug.h"
#include "ilmiaddressregistration.h"
#include "ilmiarcommand.h"

ilmiCommand *ilmiARCommand :: createARCommand(
    ilmiAddressRegistration *protocol_)
{
    ilmiARCommand *newCommand =
        new ilmiARCommand(protocol_);
    return newCommand;
}

ilmiARCommand :: ilmiARCommand(ilmiAddressRegistration *protocol_)
    : ilmiCommand(),
      _protocol(protocol_)
{
    return;
}

ilmiARCommand :: ~ilmiARCommand(void)
{
    _protocol = 0;
    return;
}

void ilmiARCommand :: response(PDUInt &errorStatus_,
                                  AsnInt &errorIndex_,
                                  VarBindList &list_)
{
    debugUser("ilmiARCommand :: response");
    if (_protocol != 0)
    {
        // Call GetResponse input from AR FSM.
        _protocol->receiveGetResponse(errorStatus_, errorIndex_, list_);
    }
    return;
}
