Class UDPNetwork.NetServerIn

    • Method Detail

      • close

        protected void close()
        Description copied from class: Daemon
        Releases any resources attached to this daemon. Be careful, its method should be called more than one time.
        Specified by:
        close in class Daemon
      • shutdown

        protected void shutdown()
        Description copied from class: Daemon
        Interrupts a thread that waits for long periods. In some cases, we must use application specific tricks. For example, if a thread is waiting on a known socket, we have to close the socket to cause the thread to return immediately. Unfortunately, there really isn't any technique that works in general.
        Specified by:
        shutdown in class Daemon
      • run

        public void run()
      • cleanServerInfo

        private void cleanServerInfo​(UDPNetwork.ServerInfo srvInfo,
                                     int bootstamp)
                              throws IOException,
                                     Exception
        Cleans a server information about packets. Restarts datagram packets numbering from beginning. Cleans expired messages.
        Parameters:
        srvInfo - the server information.
        bootstamp - the boot timestamp for the given server.
        Throws:
        IOException - an error occurs.
        Exception - an error occurs.