DiscoveryListener

org.nlogo.hubnet.client.DiscoveryListener
See theDiscoveryListener companion object
class DiscoveryListener(var interfaceAddress: Option[InetAddress]) extends Thread

The discovery listener joins a multicast group, waits for messages broadcast by a { @link org.nlogo.hubnet.server.DiscoveryAnnouncer } in the server. When a message is received, it notifies an { @link AnnouncementListener }.

Attributes

See also

org.nlogo.hubnet.protocol.DiscoveryMessage

Companion
object
Source
DiscoveryListener.scala
Graph
Supertypes
class Thread
trait Runnable
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Removes the specified announcement listener so that it no longer receives messages from this discovery listener.

Removes the specified announcement listener so that it no longer receives messages from this discovery listener.

Value parameters

listener

the announcement listener

Attributes

Source
DiscoveryListener.scala
override def run(): Unit

Joins a multicast group and listens for packets until stopListening() is called.

Joins a multicast group and listens for packets until stopListening() is called.

Attributes

Definition Classes
Thread -> Runnable
Source
DiscoveryListener.scala

Sets the specified announcement listener to receive messages from this discovery listener.

Sets the specified announcement listener to receive messages from this discovery listener.

Value parameters

listener

the announcement listener

Attributes

Source
DiscoveryListener.scala

Stops the discovery listener from listening for messages on the multicast group.

Stops the discovery listener from listening for messages on the multicast group.

Attributes

Source
DiscoveryListener.scala

Inherited methods

def getContextClassLoader(): ClassLoader

Attributes

Inherited from:
Thread
def getId(): Long

Attributes

Inherited from:
Thread
final def getName(): String

Attributes

Inherited from:
Thread
final def getPriority(): Int

Attributes

Inherited from:
Thread
def getStackTrace(): Array[StackTraceElement]

Attributes

Inherited from:
Thread
def getState(): State

Attributes

Inherited from:
Thread
final def getThreadGroup(): ThreadGroup

Attributes

Inherited from:
Thread
def getUncaughtExceptionHandler(): UncaughtExceptionHandler

Attributes

Inherited from:
Thread
def interrupt(): Unit

Attributes

Inherited from:
Thread
final def isAlive(): Boolean

Attributes

Inherited from:
Thread
final def isDaemon(): Boolean

Attributes

Inherited from:
Thread

Attributes

Inherited from:
Thread
final def join(): Unit

Attributes

Inherited from:
Thread
final def join(x$0: Long, x$1: Int): Unit

Attributes

Inherited from:
Thread
final def join(x$0: Long): Unit

Attributes

Inherited from:
Thread
def setContextClassLoader(x$0: ClassLoader): Unit

Attributes

Inherited from:
Thread
final def setDaemon(x$0: Boolean): Unit

Attributes

Inherited from:
Thread
final def setName(x$0: String): Unit

Attributes

Inherited from:
Thread
final def setPriority(x$0: Int): Unit

Attributes

Inherited from:
Thread
def setUncaughtExceptionHandler(x$0: UncaughtExceptionHandler): Unit

Attributes

Inherited from:
Thread
def start(): Unit

Attributes

Inherited from:
Thread
def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Inherited from:
Thread

Deprecated and Inherited methods

@Deprecated(since = "17", forRemoval = true)
final def checkAccess(): Unit

Attributes

Deprecated
[Since version ] see corresponding Javadoc for more information.
Inherited from:
Thread
@Deprecated(since = "1.2", forRemoval = true)

Attributes

Deprecated
[Since version ] see corresponding Javadoc for more information.
Inherited from:
Thread
@Deprecated(since = "1.2", forRemoval = true)
final def resume(): Unit

Attributes

Deprecated
[Since version ] see corresponding Javadoc for more information.
Inherited from:
Thread
@Deprecated(since = "1.2", forRemoval = _)
final def stop(): Unit

Attributes

Deprecated
[Since version ] see corresponding Javadoc for more information.
Inherited from:
Thread
@Deprecated(since = "1.2", forRemoval = true)
final def suspend(): Unit

Attributes

Deprecated
[Since version ] see corresponding Javadoc for more information.
Inherited from:
Thread

Concrete fields

var interfaceAddress: Option[InetAddress]

Attributes

Source
DiscoveryListener.scala