Quasics2019Code/HedyLamarr/src/main/cpp/Subsystems/Lighting.cpp
// Destructor, used to clean up when the Subsystem goes away.

Destructor, used to clean up when the Subsystem goes away.
Destructor used to clean up when the Subsystem goes away .
Lighting::~Lighting() {
  if (udpSocket != -1) {
    ::close(udpSocket);
    udpSocket = -1;
  }
}
Lighting :: ~ Lighting ( ) { if ( udpSocket != -1 ) { :: close ( udpSocket ) ; udpSocket = -1 ; } }
Destructor, used to clean up when the Subsystem goes away.
Destructor used to clean up when the Subsystem goes away .
// Be polite, and close the socket now that we're done with it.
