Package org.zeromq

Class ZBeacon.BroadcastServer

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    ZBeacon

    private class ZBeacon.BroadcastServer
    extends java.lang.Object
    implements java.lang.Runnable
    The broadcast server receives beacons.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.nio.channels.DatagramChannel handle  
      private boolean ignoreLocalAddress  
      private boolean isRunning  
      private java.lang.Thread thread  
    • Constructor Summary

      Constructors 
      Constructor Description
      BroadcastServer​(byte[] serverAddress, int port, boolean ignoreLocalAddress, boolean blocking)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void handleMessage​(java.nio.ByteBuffer buffer, int size, java.net.InetAddress from)  
      void run()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • handle

        private final java.nio.channels.DatagramChannel handle
      • ignoreLocalAddress

        private final boolean ignoreLocalAddress
      • thread

        private java.lang.Thread thread
      • isRunning

        private boolean isRunning
    • Constructor Detail

      • BroadcastServer

        public BroadcastServer​(byte[] serverAddress,
                               int port,
                               boolean ignoreLocalAddress,
                               boolean blocking)
    • Method Detail

      • run

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

        private void handleMessage​(java.nio.ByteBuffer buffer,
                                   int size,
                                   java.net.InetAddress from)