blob: 12d32f8ccd77cb3fe61dba78874a39e00d87c9a2 (
plain) (
blame)
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
|
#include "syncCommand.h"
SyncCommand::SyncCommand(ConnectionList & cl )
{
scc_ = new SyncConnectionCommand(cl);
src_ = new SyncRouteCommand();
}
SyncCommand::SyncCommand(ConnectionList & cl, u_int16_t mux )
{
scc_ = new SyncConnectionCommand(cl,mux);
src_=NULL;
}
SyncCommand::SyncCommand(u_int16_t mux )
{
scc_ = NULL;
src_ = new SyncRouteCommand(mux);
}
SyncCommand::~SyncCommand()
{
if (scc_)
delete scc_;
if (src_)
delete src_;
}
|