55 lines
1.1 KiB
C++
55 lines
1.1 KiB
C++
/**
|
|
* File: StreamTransfer.h
|
|
* Author: jgaebler
|
|
*
|
|
* Created on February 17, 2012, 3:45 PM
|
|
*/
|
|
#pragma once
|
|
|
|
#ifndef STREAM_TRANSFER_H
|
|
#define STREAM_TRANSFER_H
|
|
|
|
#include "common/Defines.h"
|
|
#include "common/MoversightService.h"
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
class Moversight;
|
|
class Dispatcher;
|
|
class StreamMessage;
|
|
|
|
/**
|
|
* @class StreamTransfer
|
|
* @author Jan Gäbler
|
|
* @brief This service provides simple application layer multicast service for a moversight group.
|
|
* @ingroup Moversight
|
|
*/
|
|
class StreamTransfer : public MoversightService {
|
|
public:
|
|
|
|
StreamTransfer(Dispatcher & dis);
|
|
virtual ~StreamTransfer();
|
|
|
|
virtual void initialise();
|
|
virtual void finalise();
|
|
|
|
StreamTransfer & operator=(const StreamTransfer & other);
|
|
|
|
void handleMessage(StreamMessage * pdu);
|
|
|
|
void send( StreamMessage & msg);
|
|
|
|
private:
|
|
|
|
void deliverMessage(StreamMessage & msg);
|
|
|
|
int sequ;
|
|
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif /* STREAM_TRANSFER_H */
|
|
|