Transceiver52M: Rearrange socket port assignemnts
Style change for clarity only. Signed-off-by: Thomas Tsou <tom@tsou.cc>
This commit is contained in:
parent
b075dd2f73
commit
e1ce92599a
|
@ -113,6 +113,7 @@ Transceiver::~Transceiver()
|
||||||
|
|
||||||
bool Transceiver::init()
|
bool Transceiver::init()
|
||||||
{
|
{
|
||||||
|
int d_srcport, d_dstport, c_srcport, c_dstport;
|
||||||
signalVector *burst;
|
signalVector *burst;
|
||||||
|
|
||||||
if (!mChans) {
|
if (!mChans) {
|
||||||
|
@ -139,10 +140,13 @@ bool Transceiver::init()
|
||||||
mClockSocket = new UDPSocket(mBasePort, mAddr.c_str(), mBasePort + 100);
|
mClockSocket = new UDPSocket(mBasePort, mAddr.c_str(), mBasePort + 100);
|
||||||
|
|
||||||
for (size_t i = 0; i < mChans; i++) {
|
for (size_t i = 0; i < mChans; i++) {
|
||||||
mDataSockets[i] = new UDPSocket(mBasePort + 2 * i + 2, mAddr.c_str(),
|
c_srcport = mBasePort + 2 * i + 1;
|
||||||
mBasePort + 2 * i + 102);
|
c_dstport = mBasePort + 2 * i + 101;
|
||||||
mCtrlSockets[i] = new UDPSocket(mBasePort + 2 * i + 1, mAddr.c_str(),
|
d_srcport = mBasePort + 2 * i + 2;
|
||||||
mBasePort + 2 * i + 101);
|
d_dstport = mBasePort + 2 * i + 102;
|
||||||
|
|
||||||
|
mCtrlSockets[i] = new UDPSocket(c_srcport, mAddr.c_str(), c_dstport);
|
||||||
|
mDataSockets[i] = new UDPSocket(d_srcport, mAddr.c_str(), d_dstport);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (size_t i = 0; i < mChans; i++) {
|
for (size_t i = 0; i < mChans; i++) {
|
||||||
|
|
Loading…
Reference in New Issue