Class WebConnectedHost
- java.lang.Object
-
- org.activecomponents.udp.holepunching.server.webcommands.WebConnectedHost
-
- All Implemented Interfaces:
IConnectedHost
public class WebConnectedHost extends java.lang.Object implements IConnectedHost
Host connected via http.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.net.DatagramSocket
dgsocket
protected java.util.Map<java.lang.String,IRegisteredHost>
registeredhosts
protected java.lang.String
remoteaddr
-
Constructor Summary
Constructors Constructor Description WebConnectedHost(java.lang.String remoteaddr, java.util.Map<java.lang.String,IRegisteredHost> registeredhosts, java.net.DatagramSocket dgsocket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,IRegisteredHost>
getRegisteredHosts()
Retrieves the registered hosts.java.net.InetAddress
getRemoteAddress()
Gets the address of the connected host.java.net.DatagramSocket
getUdpSocket()
Retrieves the UDP socket for testing communication.
-
-
-
Field Detail
-
remoteaddr
protected java.lang.String remoteaddr
-
registeredhosts
protected java.util.Map<java.lang.String,IRegisteredHost> registeredhosts
-
dgsocket
protected java.net.DatagramSocket dgsocket
-
-
Constructor Detail
-
WebConnectedHost
public WebConnectedHost(java.lang.String remoteaddr, java.util.Map<java.lang.String,IRegisteredHost> registeredhosts, java.net.DatagramSocket dgsocket)
-
-
Method Detail
-
getRegisteredHosts
public java.util.Map<java.lang.String,IRegisteredHost> getRegisteredHosts()
Retrieves the registered hosts.- Specified by:
getRegisteredHosts
in interfaceIConnectedHost
- Returns:
- The registered hosts.
-
getRemoteAddress
public java.net.InetAddress getRemoteAddress()
Gets the address of the connected host.- Specified by:
getRemoteAddress
in interfaceIConnectedHost
- Returns:
- The address.
-
getUdpSocket
public java.net.DatagramSocket getUdpSocket()
Retrieves the UDP socket for testing communication.- Specified by:
getUdpSocket
in interfaceIConnectedHost
- Returns:
- The UDP socket.
-
-