//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project
//
//File: unistate_u.cpp
//
//Version: $Revision: 1.6 $
//
//State: $State: Exp $
//
//Date: $Date: 1998/10/30 14:53:59 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications Software and Multimedia
//
//Author:
//      Jari Pusa
//
//Description:
//
//
//Copyright:
//
//
//Licence:
//
//
//History: 

#include "unistate_u.h"

#include "protocol/uni/unistrings.h"
#include "uniprotocol.h"

uniUserState :: uniUserState(void)
    : uniState()
{
    return;
}

uniUserState :: ~uniUserState(void)
{
    return;
}

void uniUserState :: sigRELEASEreqAct(sigRELEASEreq *message_,
                                      pfProtocol *protocol_)
{
    uniProtocol *protocol = dynamic_cast<uniProtocol*>(protocol_);
    pfUlong causeR = (*message_)[uniCauseStr].getInteger(uniCause_ValueStr);
    protocol->setInteger(uniCauseRStr, causeR);
    protocol->stopAllTimers();
    protocol->sendRELEASEpduToCoOrd(message_);
    protocol->startTimer(uniT308Str);
    protocol->changeToReleaseRequestState();
    return;
}

void uniUserState :: uniRELEASEpduAct(uniRELEASEpdu *message_,
                                      pfProtocol *protocol_)
{
    uniProtocol *protocol = dynamic_cast<uniProtocol*>(protocol_);
    protocol->stopAllTimers();
    protocol->sendRELEASEindToCC(message_);
    protocol->changeToReleaseIndicationState();
    return;
}








