Package org.spongepowered.api.network
Interface RemoteConnection
-
- All Known Subinterfaces:
ClientSideConnection
,EngineConnection
,LocalPlayerConnection
,PlayerConnection
,RconConnection
,ServerPlayerConnection
,ServerSideConnection
public interface RemoteConnection
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.net.InetSocketAddress
address()
Gets theInetSocketAddress
of this connection.void
close()
Closes the connection.java.net.InetSocketAddress
virtualHost()
Gets the host name the connection is connecting to the server with.
-
-
-
Method Detail
-
address
java.net.InetSocketAddress address()
Gets theInetSocketAddress
of this connection.- Returns:
- The address
-
virtualHost
java.net.InetSocketAddress virtualHost()
Gets the host name the connection is connecting to the server with.Examples include: If a player is connecting to `mc.example.com`, the hostname will show `mc.example.com`. This is NOT the originating hostname of the client.
- Returns:
- The host name
-
close
void close()
Closes the connection.
-
-