From d647ec5dc1d8c3ff30544f7ef2bc6e0aa06f6633 Mon Sep 17 00:00:00 2001 From: Thomas Tsou Date: Tue, 29 Oct 2013 15:17:34 -0400 Subject: 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 --- Transceiver52M/Transceiver.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Transceiver52M/Transceiver.h') 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 -- cgit v1.2.3