// Testausta

#include "../../pf/frame.h"
#include "../../pf/storage.h"
#include "../../protocol/uni/unipdu.h"
#include "../../pf/debug.h"
#include <iostream.h>


void main(void)
{
    debugOutputCout();

    try
    {

    pfFrame frame;

//    frame.fromString("09030000017580000978800005A101010101");

frame.fromString("09030000010580003159800008840186A0850186A05C80000200005E80000281A07080001582470005000000000000000000000000000000080278800005A101010101");

    debugUser("frame ready");

    uniPdu *pdu = uniPdu::create(frame);

    debugUser("created");

    pdu->print();

    debugUser("printed");

    uniSTATUS_ENQUIRYpdu *pdu2 = uniSTATUS_ENQUIRYpdu::create();

    debugUser("created more");

    pdu2->extend(*pdu2);

    debugUser("extend");

    pdu2->encode();

    debugUser("encode");

    pdu2->print();

    debugUser("print 2");

    }

    catch(pfException &ex)
    {
        ex.printInfo();
    }

    catch(...)

    {
        cout << "virhe\n";
    }



/*
    cout << testiString;
    koko = toolEncodeISDN(testiString);
    cout << koko;
    testiString = toolDecodeISDN(koko);
    cout << testiString;
*/
}
