//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project / UNI
//
//File: unirrnprotocol.h
//
//Version: $Revision: 1.8 $
//
//State: $State: Exp $
//
//Date: $Date: 1998/08/05 05:22:07 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications Software and Multimedia
//
//Author:
//      Jari Pusa
//
//Description:
//      Task for RRN protocol conduit is to handle incoming
//      reset request (transported with RESTART pdu)
//
//Copyright:
//
//
//Licence:
//
//
//History: 

#ifndef __UNI_UNIRRNPROTOCOL_H__
#define __UNI_UNIRRNPROTOCOL_H__

#include "pf/protocol.h"

class uniRESTARTpdu;
class uniRESETresp;

//
// Class: uniRRNProtocol
//
// Description:
//     Implements a Reset Response protocol conduit.
//     

class uniRRNProtocol : public pfProtocol
{
    public:
        static pfConduit create(void);
        
        virtual ~uniRRNProtocol(void);

        void sendRESETind(uniRESTARTpdu *pdu_);
        void sendRESET_ERRORind(pfUlong reason_, pfUlong callState_);
        void sendRESTART_ACKpdu(uniRESETresp *primitive_);
        
        virtual void changeToNullState(void);
        virtual void changeToRestartState(void);

    private:
        uniRRNProtocol(void);
};

#endif // __UNI_UNIRRNPROTOCOL_H__
