package Multicast;
import java.net.*;
import java.nio.charset.Charset;
public class MulticastHello extends MulticastSendingThread
{
private static MulticastHello instance = null;
private byte[] hello;
public MulticastHello(int port, String ip_group, int interval_milli, byte[] hello)
{
super(port, ip_group, interval_milli);
this.setHello(hello);
}
@Override
protected byte[] getNextPacketBytes()
{
return hello;
}
public void setHello(byte[] hello)
{
this.hello = hello;
}
public byte[] getHello() {
return this.hello;
}
}