public class org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup extends org.apache.dubbo.remoting.p2p.exchange.support.AbstractExchangeGroup
{
private static final java.lang.String JOIN;
private static final java.lang.String LEAVE;
private java.net.InetAddress multicastAddress;
private java.net.MulticastSocket multicastSocket;
public void <init>(org.apache.dubbo.common.URL)
{
java.lang.IllegalStateException v;
org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup v;
java.net.InetAddress v, v;
org.apache.dubbo.common.URL v;
java.lang.Thread v;
int v;
java.lang.String v, v, v, v, v;
boolean v;
org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup$1 v;
java.io.IOException v;
java.lang.IllegalArgumentException v;
java.net.MulticastSocket v, v, v;
v := @this: org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup;
v := @parameter: org.apache.dubbo.common.URL;
specialinvoke v.<org.apache.dubbo.remoting.p2p.exchange.support.AbstractExchangeGroup: void <init>(org.apache.dubbo.common.URL)>(v);
v = virtualinvoke v.<org.apache.dubbo.common.URL: java.lang.String getHost()>();
v = staticinvoke <org.apache.dubbo.common.utils.NetUtils: boolean isMulticastAddress(java.lang.String)>(v);
if v != 0 goto label;
v = new java.lang.IllegalArgumentException;
v = virtualinvoke v.<org.apache.dubbo.common.URL: java.lang.String getHost()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Invalid multicast address \u, scope: 224.0.0.0 - 239.255.255.255");
specialinvoke v.<java.lang.IllegalArgumentException: void <init>(java.lang.String)>(v);
throw v;
label:
v = virtualinvoke v.<org.apache.dubbo.common.URL: java.lang.String getHost()>();
v = staticinvoke <java.net.InetAddress: java.net.InetAddress getByName(java.lang.String)>(v);
v.<org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup: java.net.InetAddress multicastAddress> = v;
v = new java.net.MulticastSocket;
v = virtualinvoke v.<org.apache.dubbo.common.URL: int getPort()>();
specialinvoke v.<java.net.MulticastSocket: void <init>(int)>(v);
v.<org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup: java.net.MulticastSocket multicastSocket> = v;
v = v.<org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup: java.net.MulticastSocket multicastSocket>;
virtualinvoke v.<java.net.MulticastSocket: void setLoopbackMode(boolean)>(0);
v = v.<org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup: java.net.MulticastSocket multicastSocket>;
v = v.<org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup: java.net.InetAddress multicastAddress>;
virtualinvoke v.<java.net.MulticastSocket: void joinGroup(java.net.InetAddress)>(v);
v = new java.lang.Thread;
v = new org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup$1;
specialinvoke v.<org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup$1: void <init>(org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup)>(v);
specialinvoke v.<java.lang.Thread: void <init>(java.lang.Runnable,java.lang.String)>(v, "MulticastGroupReceiver");
virtualinvoke v.<java.lang.Thread: void setDaemon(boolean)>(1);
virtualinvoke v.<java.lang.Thread: void start()>();
label:
goto label;
label:
v := @caughtexception;
v = new java.lang.IllegalStateException;
v = virtualinvoke v.<java.io.IOException: java.lang.String getMessage()>();
specialinvoke v.<java.lang.IllegalStateException: void <init>(java.lang.String,java.lang.Throwable)>(v, v);
throw v;
label:
return;
catch java.io.IOException from label to label with label;
}
private void send(java.lang.String) throws org.apache.dubbo.remoting.RemotingException
{
byte[] v;
java.lang.IllegalStateException v;
java.io.IOException v;
org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup v;
java.net.InetAddress v;
java.net.MulticastSocket v, v;
int v, v;
java.lang.String v, v;
java.net.DatagramPacket v;
v := @this: org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup;
v := @parameter: java.lang.String;
v = new java.net.DatagramPacket;
v = virtualinvoke v.<java.lang.String: byte[] getBytes()>();
v = virtualinvoke v.<java.lang.String: int length()>();
v = v.<org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup: java.net.InetAddress multicastAddress>;
v = v.<org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup: java.net.MulticastSocket multicastSocket>;
v = virtualinvoke v.<java.net.MulticastSocket: int getLocalPort()>();
specialinvoke v.<java.net.DatagramPacket: void <init>(byte[],int,java.net.InetAddress,int)>(v, v, v, v);
label:
v = v.<org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup: java.net.MulticastSocket multicastSocket>;
virtualinvoke v.<java.net.MulticastSocket: void send(java.net.DatagramPacket)>(v);
label:
goto label;
label:
v := @caughtexception;
v = new java.lang.IllegalStateException;
v = virtualinvoke v.<java.io.IOException: java.lang.String getMessage()>();
specialinvoke v.<java.lang.IllegalStateException: void <init>(java.lang.String,java.lang.Throwable)>(v, v);
throw v;
label:
return;
catch java.io.IOException from label to label with label;
}
private void receive(java.lang.String, java.net.InetSocketAddress) throws org.apache.dubbo.remoting.RemotingException
{
java.net.InetSocketAddress v;
org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup v;
org.apache.dubbo.common.URL v, v;
int v, v;
java.lang.String v, v, v, v, v, v, v;
boolean v, v;
v := @this: org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup;
v := @parameter: java.lang.String;
v := @parameter: java.net.InetSocketAddress;
v = virtualinvoke v.<java.lang.String: boolean startsWith(java.lang.String)>("join");
if v == 0 goto label;
v = "join";
v = virtualinvoke v.<java.lang.String: int length()>();
v = virtualinvoke v.<java.lang.String: java.lang.String substring(int)>(v);
v = virtualinvoke v.<java.lang.String: java.lang.String trim()>();
v = staticinvoke <org.apache.dubbo.common.URL: org.apache.dubbo.common.URL valueOf(java.lang.String)>(v);
virtualinvoke v.<org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup: org.apache.dubbo.remoting.Client connect(org.apache.dubbo.common.URL)>(v);
goto label;
label:
v = virtualinvoke v.<java.lang.String: boolean startsWith(java.lang.String)>("leave");
if v == 0 goto label;
v = "leave";
v = virtualinvoke v.<java.lang.String: int length()>();
v = virtualinvoke v.<java.lang.String: java.lang.String substring(int)>(v);
v = virtualinvoke v.<java.lang.String: java.lang.String trim()>();
v = staticinvoke <org.apache.dubbo.common.URL: org.apache.dubbo.common.URL valueOf(java.lang.String)>(v);
virtualinvoke v.<org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup: void disconnect(org.apache.dubbo.common.URL)>(v);
label:
return;
}
public org.apache.dubbo.remoting.p2p.exchange.ExchangePeer join(org.apache.dubbo.common.URL, org.apache.dubbo.remoting.exchange.ExchangeHandler) throws org.apache.dubbo.remoting.RemotingException
{
org.apache.dubbo.remoting.p2p.exchange.ExchangePeer v;
org.apache.dubbo.common.URL v;
org.apache.dubbo.remoting.exchange.ExchangeHandler v;
java.lang.String v, v;
org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup v;
v := @this: org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup;
v := @parameter: org.apache.dubbo.common.URL;
v := @parameter: org.apache.dubbo.remoting.exchange.ExchangeHandler;
v = specialinvoke v.<org.apache.dubbo.remoting.p2p.exchange.support.AbstractExchangeGroup: org.apache.dubbo.remoting.p2p.exchange.ExchangePeer join(org.apache.dubbo.common.URL,org.apache.dubbo.remoting.exchange.ExchangeHandler)>(v, v);
v = virtualinvoke v.<org.apache.dubbo.common.URL: java.lang.String toFullString()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("join \u0001");
specialinvoke v.<org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup: void send(java.lang.String)>(v);
return v;
}
public void leave(org.apache.dubbo.common.URL) throws org.apache.dubbo.remoting.RemotingException
{
org.apache.dubbo.common.URL v;
java.lang.String v, v;
org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup v;
v := @this: org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup;
v := @parameter: org.apache.dubbo.common.URL;
specialinvoke v.<org.apache.dubbo.remoting.p2p.exchange.support.AbstractExchangeGroup: void leave(org.apache.dubbo.common.URL)>(v);
v = virtualinvoke v.<org.apache.dubbo.common.URL: java.lang.String toFullString()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("leave \u0001");
specialinvoke v.<org.apache.dubbo.remoting.p2p.exchange.support.MulticastExchangeGroup: void send(java.lang.String)>(v);
return;
}
}