mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-30 19:53:46 +00:00
40 lines
688 B
C++
40 lines
688 B
C++
#include "TCPConnectionProvider.h"
|
|
#include "MacTCPStream.h"
|
|
#include <ReliableStream.h>
|
|
#include "StatusDisplay.h"
|
|
|
|
|
|
TCPConnectionProvider::TCPConnectionProvider(StatusDisplay *statusDisplay)
|
|
: statusDisplay(statusDisplay)
|
|
{
|
|
stream = std::make_unique<MacTCPStream>();
|
|
}
|
|
|
|
TCPConnectionProvider::~TCPConnectionProvider()
|
|
{
|
|
|
|
}
|
|
|
|
Stream* TCPConnectionProvider::getStream()
|
|
{
|
|
return stream.get();
|
|
}
|
|
|
|
void TCPConnectionProvider::idle()
|
|
{
|
|
if(stream)
|
|
{
|
|
stream->setListener(listener);
|
|
stream->idle();
|
|
}
|
|
}
|
|
|
|
void TCPConnectionProvider::unloadSegDummy()
|
|
{
|
|
}
|
|
|
|
void *TCPConnectionProvider::segmentToUnload()
|
|
{
|
|
return nullptr;//(void*) &unloadSegDummy;
|
|
}
|