Class UDP.PacketReceiver

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Runnable
    Enclosing class:
    UDP

    public class UDP.PacketReceiver
    extends java.lang.Object
    implements java.lang.Runnable, java.io.Closeable
    • Constructor Summary

      Constructors 
      Constructor Description
      PacketReceiver​(java.net.DatagramSocket socket, java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void run()  
      void start()  
      void stop()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PacketReceiver

        public PacketReceiver​(java.net.DatagramSocket socket,
                              java.lang.String name)
    • Method Detail

      • start

        public void start()
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • stop

        public void stop()
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object