mirror of
https://github.com/nasa/trick.git
synced 2025-06-20 08:03:55 +00:00
Updated var server multicast address to 239.3.14.15. Ref #452
This commit is contained in:
@ -1411,7 +1411,7 @@ public class SimControlApplication extends TrickApplication implements PropertyC
|
|||||||
private void retrieveHostPort() {
|
private void retrieveHostPort() {
|
||||||
try {
|
try {
|
||||||
multicastSocket = new MulticastSocket(9265);
|
multicastSocket = new MulticastSocket(9265);
|
||||||
InetAddress group = InetAddress.getByName("224.3.14.15");
|
InetAddress group = InetAddress.getByName("239.3.14.15");
|
||||||
multicastSocket.joinGroup(group);
|
multicastSocket.joinGroup(group);
|
||||||
|
|
||||||
byte[] buffer = new byte[1024];
|
byte[] buffer = new byte[1024];
|
||||||
|
@ -63,7 +63,7 @@ public class SimulationSniffer extends Thread {
|
|||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
multicastSocket = new MulticastSocket(9265) {{
|
multicastSocket = new MulticastSocket(9265) {{
|
||||||
joinGroup(InetAddress.getByName("224.3.14.15"));
|
joinGroup(InetAddress.getByName("239.3.14.15"));
|
||||||
}};
|
}};
|
||||||
byte[] buffer = new byte[4096];
|
byte[] buffer = new byte[4096];
|
||||||
DatagramPacket packet = new DatagramPacket(buffer, buffer.length);
|
DatagramPacket packet = new DatagramPacket(buffer, buffer.length);
|
||||||
|
@ -156,7 +156,7 @@ void * Trick::VariableServerListenThread::thread_body() {
|
|||||||
/* Set up destination address */
|
/* Set up destination address */
|
||||||
memset(&mcast_addr, 0, sizeof(mcast_addr));
|
memset(&mcast_addr, 0, sizeof(mcast_addr));
|
||||||
mcast_addr.sin_family = AF_INET;
|
mcast_addr.sin_family = AF_INET;
|
||||||
mcast_addr.sin_addr.s_addr = inet_addr("224.3.14.15");
|
mcast_addr.sin_addr.s_addr = inet_addr("239.3.14.15");
|
||||||
mcast_addr.sin_port = htons((uint16_t) 9265);
|
mcast_addr.sin_port = htons((uint16_t) 9265);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user