public static interface Client.Builder.Bind
Modifier and Type | Method and Description |
---|---|
@NonNull Client.Builder.Bind |
host(@Nullable String host)
Binds the client to a host or IP locally.
|
@NonNull Client.Builder.Bind |
port(int port)
Binds the client to the specified port.
|
@NonNull Client.Builder |
then()
Returns to the root builder.
|
@NonNull Client.Builder.Bind host(@Nullable String host)
By default, the host is not set which results in wildcard binding.
host
- host to bind to, or null for wildcard binding@NonNull Client.Builder.Bind port(int port)
By default, the port is 0.
port
- port to bind to@NonNull Client.Builder then()
Copyright © 2013–2021 Kitteh. All rights reserved.