mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-24 23:32:06 +00:00
40 lines
726 B
C++
40 lines
726 B
C++
#include "OpenTptConnectionProvider.h"
|
|
#include "OpenTptStream.h"
|
|
#include <ReliableStream.h>
|
|
#include "StatusDisplay.h"
|
|
|
|
|
|
OpenTptConnectionProvider::OpenTptConnectionProvider(StatusDisplay *statusDisplay)
|
|
: statusDisplay(statusDisplay)
|
|
{
|
|
stream = std::make_unique<OpenTptStream>();
|
|
}
|
|
|
|
OpenTptConnectionProvider::~OpenTptConnectionProvider()
|
|
{
|
|
|
|
}
|
|
|
|
Stream* OpenTptConnectionProvider::getStream()
|
|
{
|
|
return stream.get();
|
|
}
|
|
|
|
void OpenTptConnectionProvider::idle()
|
|
{
|
|
if(stream)
|
|
{
|
|
stream->setListener(listener);
|
|
stream->idle();
|
|
}
|
|
}
|
|
|
|
void OpenTptConnectionProvider::unloadSegDummy()
|
|
{
|
|
}
|
|
|
|
void *OpenTptConnectionProvider::segmentToUnload()
|
|
{
|
|
return nullptr;//(void*) &unloadSegDummy;
|
|
}
|