Skip to content
BTPLayer.hh 740 B
Newer Older
filatov's avatar
filatov committed
#ifndef BTP_LAYER_H
#define BTP_LAYER_H
#include "Layer.hh"
#include "BTPTypes.hh"
#include "BTPCodec.hh"
filatov's avatar
filatov committed

class LibItsBtp__TestSystem::BtpPort;

class BTPLayer : public TLayer<LibItsBtp__TestSystem::BtpPort> {
    BTPCodec _codec;
filatov's avatar
filatov committed
  public:
    inline BTPLayer():TLayer<LibItsBtp__TestSystem::BtpPort>(){}
    virtual ~BTPLayer(){}
    void sendMsg(const LibItsBtp__TypesAndValues::BtpPacket&, const Params& param);
filatov's avatar
filatov committed
    void receiveToAllPorts(const BTPA& m, const Params& param);
    void receiveToAllPorts(const BTPB& m, const Params& param);
filatov's avatar
filatov committed
    virtual void sendData(const OCTETSTRING& data, const Params& params);
    virtual void receiveData(const OCTETSTRING& data, const Params& info);
};