Class NetworkAdminUDPTester
- java.lang.Object
-
- com.biglybt.core.networkmanager.admin.impl.NetworkAdminUDPTester
-
- All Implemented Interfaces:
NetworkAdminProtocolTester
public class NetworkAdminUDPTester extends java.lang.Object implements NetworkAdminProtocolTester
-
-
Field Summary
Fields Modifier and Type Field Description private Core
core
private NetworkAdminProgressListener
listener
static java.lang.String
UDP_SERVER_ADDRESS
static java.lang.String
UDP_SERVER_ADDRESS_V6
static int
UDP_SERVER_PORT_V4
static int
UDP_SERVER_PORT_V6
-
Constructor Summary
Constructors Modifier Constructor Description protected
NetworkAdminUDPTester(Core _core, NetworkAdminProgressListener _listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.InetAddress
testInbound(java.net.InetAddress bind_ip, int bind_port, boolean ipv6)
java.net.InetAddress
testOutbound(java.net.InetAddress bind_ip, int bind_port, boolean ipv6)
-
-
-
Field Detail
-
UDP_SERVER_ADDRESS
public static final java.lang.String UDP_SERVER_ADDRESS
- See Also:
- Constant Field Values
-
UDP_SERVER_ADDRESS_V6
public static final java.lang.String UDP_SERVER_ADDRESS_V6
- See Also:
- Constant Field Values
-
UDP_SERVER_PORT_V4
public static final int UDP_SERVER_PORT_V4
- See Also:
- Constant Field Values
-
UDP_SERVER_PORT_V6
public static final int UDP_SERVER_PORT_V6
- See Also:
- Constant Field Values
-
core
private final Core core
-
listener
private final NetworkAdminProgressListener listener
-
-
Constructor Detail
-
NetworkAdminUDPTester
protected NetworkAdminUDPTester(Core _core, NetworkAdminProgressListener _listener)
-
-
Method Detail
-
testOutbound
public java.net.InetAddress testOutbound(java.net.InetAddress bind_ip, int bind_port, boolean ipv6) throws NetworkAdminException
- Specified by:
testOutbound
in interfaceNetworkAdminProtocolTester
- Throws:
NetworkAdminException
-
testInbound
public java.net.InetAddress testInbound(java.net.InetAddress bind_ip, int bind_port, boolean ipv6) throws NetworkAdminException
- Specified by:
testInbound
in interfaceNetworkAdminProtocolTester
- Throws:
NetworkAdminException
-
-