2014-11-21 21:24:33 +01:00
|
|
|
// protoserver includes
|
|
|
|
#include "protoserver/ProtoConnectionWrapper.h"
|
|
|
|
|
|
|
|
ProtoConnectionWrapper::ProtoConnectionWrapper(const std::string & address, int priority, int duration_ms, bool skipProtoReply) :
|
2016-05-26 23:44:27 +02:00
|
|
|
_priority(priority),
|
|
|
|
_duration_ms(duration_ms),
|
|
|
|
_connection(address)
|
2014-11-21 21:24:33 +01:00
|
|
|
{
|
2016-05-26 23:44:27 +02:00
|
|
|
_connection.setSkipReply(skipProtoReply);
|
2014-11-21 21:24:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
ProtoConnectionWrapper::~ProtoConnectionWrapper()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void ProtoConnectionWrapper::receiveImage(const Image<ColorRgb> & image)
|
|
|
|
{
|
2016-05-26 23:44:27 +02:00
|
|
|
_connection.setImage(image, _priority, _duration_ms);
|
2014-11-21 21:24:33 +01:00
|
|
|
}
|