Package org.omegazero.net.client.params
Class ConnectionParameters
java.lang.Object
org.omegazero.net.client.params.ConnectionParameters
- Direct Known Subclasses:
TLSConnectionParameters
Contains parameters for creating outgoing connections.
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionParameters(SocketAddress remote) Creates newConnectionParameters.ConnectionParameters(SocketAddress remote, SocketAddress local) Creates newConnectionParameters. -
Method Summary
Modifier and TypeMethodDescriptiongetLocal()Returns the configured local address.Returns the configured remote address.
-
Constructor Details
-
ConnectionParameters
Creates newConnectionParameters.- Parameters:
remote- The remote address
-
ConnectionParameters
Creates newConnectionParameters.- Parameters:
remote- The remote addresslocal- The local address to bind to
-
-
Method Details
-
getRemote
Returns the configured remote address.- Returns:
- The configured remote address
-
getLocal
Returns the configured local address.- Returns:
- The configured local address
-