Class MulticastClient
java.lang.Object
java.lang.Thread
com.bytedesk.core.cluster.udp.multicast.MulticastClient
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected byte[]
protected InetSocketAddress
protected MulticastSocket
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private DatagramPacket
resultPacket
(DatagramPacket receivePacket) void
run()
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
socket
-
buf
protected byte[] buf -
groupAddress
-
-
Constructor Details
-
MulticastClient
- Throws:
IOException
-
-
Method Details
-
sayHello
- Throws:
IOException
-
resultPacket
-
run
public void run() -
close
public void close()
-