public interface NetworkClient
| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
getAddress()
Returns the socket address of the client.
|
int |
getProtocolVersion()
Returns the protocol version of the client.
|
InetSocketAddress |
getVirtualHost()
Returns the virtual host the client is connected to.
|
InetSocketAddress getAddress()
int getProtocolVersion()
-1 if unknown@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.