-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsapserver.cpp
More file actions
74 lines (54 loc) · 1.39 KB
/
Copy pathsapserver.cpp
File metadata and controls
74 lines (54 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#include "sapserver.h"
#include "sapserverimpl.h"
using namespace pml::sap;
Server::Server(std::shared_ptr<Handler> pHandler, bool bThreaded) :
m_pImpl(std::unique_ptr<SapServerImpl>(new SapServerImpl(pHandler, bThreaded)))
{
}
Server::~Server()
{
}
void Server::AddSender(const IpAddress& localAddress, std::chrono::milliseconds delay, const std::string& sSDP)
{
m_pImpl->AddSender(localAddress, delay,sSDP);
}
void Server::AddSdp(const IpAddress& localAddress, const std::string& sSDP)
{
m_pImpl->AddSdp(localAddress, sSDP);
}
void Server::RemoveSdp(const IpAddress& localAddress, const std::string& sSDP)
{
m_pImpl->RemoveSdp(localAddress, sSDP);
}
void Server::SetSenderDelay(const IpAddress& localAddress, std::chrono::milliseconds delay)
{
m_pImpl->SetSenderDelay(localAddress, delay);
}
void Server::RemoveSender(const IpAddress& localAddress)
{
m_pImpl->RemoveSender(localAddress);
}
void Server::RemoveAllSenders()
{
m_pImpl->RemoveAllSenders();
}
void Server::Run()
{
m_pImpl->Run();
}
void Server::Stop()
{
m_pImpl->Stop();
}
bool Server::IsStopped()
{
return m_pImpl->IsStopped();
}
void Server::AddReceiver(const IpAddress& multicastAddress, const IpAddress& listenAddress)
{
m_pImpl->AddReceiver(multicastAddress, listenAddress);
}
void Server::RemoveReceiver(const IpAddress& multicastAddress)
{
m_pImpl->RemoveReceiver(multicastAddress);
}