aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/Transceiver.h
diff options
context:
space:
mode:
authorThomas Tsou <tom@tsou.cc>2013-10-29 15:17:34 -0400
committerThomas Tsou <tom@tsou.cc>2013-11-08 11:33:31 -0500
commitd647ec5dc1d8c3ff30544f7ef2bc6e0aa06f6633 (patch)
treedfd07bbb17b50f72f729763eddf5c9eea6962526 /Transceiver52M/Transceiver.h
parentc289d7a4095cd753d8c80a4b9e5c1001d78586fc (diff)
Transceiver52M: Delay socket allocation to heap
For multiple transceiver connections, it is inappropriate to allocate all sockets in the transceiver constructor due to not knowing how many connections are avaialble in advance and for error checking purposes. Instead, store the base socket address port combination and setup the sockets in the initialization call. Signed-off-by: Thomas Tsou <tom@tsou.cc>
Diffstat (limited to 'Transceiver52M/Transceiver.h')
-rw-r--r--Transceiver52M/Transceiver.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Transceiver52M/Transceiver.h b/Transceiver52M/Transceiver.h
index c3be343..4b549ef 100644
--- a/Transceiver52M/Transceiver.h
+++ b/Transceiver52M/Transceiver.h
@@ -32,15 +32,15 @@
/** The Transceiver class, responsible for physical layer of basestation */
class Transceiver {
-
private:
-
+ int mBasePort;
+ std::string mAddr;
GSM::Time mTransmitLatency; ///< latency between basestation clock and transmit deadline clock
GSM::Time mLatencyUpdateTime; ///< last time latency was updated
- UDPSocket mDataSocket; ///< socket for writing to/reading from GSM core
- UDPSocket mControlSocket; ///< socket for writing/reading control commands from GSM core
- UDPSocket mClockSocket; ///< socket for writing clock updates to GSM core
+ UDPSocket *mDataSocket; ///< socket for writing to/reading from GSM core
+ UDPSocket *mCtrlSocket; ///< socket for writing/reading control commands from GSM core
+ UDPSocket *mClockSocket; ///< socket for writing clock updates to GSM core
VectorQueue mTransmitPriorityQueue; ///< priority queue of transmit bursts received from GSM core
VectorFIFO* mTransmitFIFO; ///< radioInterface FIFO of transmit bursts