public interface NetworkClient
Modifier and Type | Method and Description |
---|---|
@NotNull InetSocketAddress |
getAddress()
Returns the socket address of the client.
|
int |
getProtocolVersion()
Returns the protocol version of the client.
|
@Nullable InetSocketAddress |
getVirtualHost()
Returns the virtual host the client is connected to.
|
@NotNull @NotNull InetSocketAddress getAddress()
int getProtocolVersion()
-1
if unknown@Nullable @Nullable InetSocketAddress getVirtualHost()
The virtual host refers to the hostname/port the client used to connect to the server.
null
if unknownCopyright © 2021. All rights reserved.