State Maintainer: NetworkListenerOpenClientList

stateblock NetworkListenerOpenClientList augments RNetListener {
  addstate RNetListener.openClients: ObjectSet = new ObjectSet ();

  precode postAccept (clientConnection: RNetConnection) {
    openClients.add (clientConnection); 
  }

  postcode closeClient (clientConnection: RNetConnection) {
    openClients.remove (clientConnection); 
  }
}

About this file

Naccio Home Page
David Evans
University of Virginia, Computer Science