package Multicast;
public class MulticastWebProgram extends MulticastJsonObject
{
public int tcpPort;
public int udpPort;
public String program_name;
public String protocol;
public MulticastWebProgram()
{
super();
}
public String getURL()
{
return this.protocol + "://" + this.getSender().getAddress().getHostAddress() + ":" + this.tcpPort;
}
@Override
public void copy(Object object)
{
if (!this.isObjectThisClass(object)) return;
MulticastWebProgram webProgram = (MulticastWebProgram) object;
this.tcpPort = webProgram.tcpPort;
this.udpPort = webProgram.udpPort;
this.program_name = webProgram.program_name;
this.protocol = webProgram.protocol;
}
@Override
public int maxPacketSize() {
return 1024;
}
}