public class SocketParams extends Object implements VisitableConfig
| Modifier and Type | Field and Description |
|---|---|
String |
bindToHost
The hostname or IP address the CoAP endpoint binds to.
|
Integer |
bindToPort
The port the CoAP endpoint binds to.
|
Integer |
receiveBuffer
Receive buffer size [bytes].
|
boolean |
reuseAddress
Reuse address when true.
|
Integer |
sendBuffer
Send buffer size [bytes].
|
| Constructor and Description |
|---|
SocketParams() |
@Parameter @Optional @Summary(value="The hostname or IP address the CoAP endpoint binds to. If empty anyLocalAddress is used (typically 0.0.0.0 or ::0)") @Example(value="0.0.0.0") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public String bindToHost
@Parameter @Optional @Summary(value="The port the CoAP endpoint binds to.\nWhen empty a free ephemeral port will be used, which is usual for client endpoints.\nA server endpoint usually binds to one of the standard CoAP ports 5683 (coap) and 5684 (coaps), or to another predetermined port value.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public Integer bindToPort
@Parameter @Optional @Summary(value="Receive buffer size [bytes]. \nThe size is os-defined by default and must be at least 64 bytes.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public Integer receiveBuffer
@Parameter @Optional @Summary(value="Send buffer size [bytes]. \nThe size is os-defined by default and must be at least 64 bytes.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public Integer sendBuffer
@Parameter @Optional(defaultValue="false") @Summary(value="Reuse address when true.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public boolean reuseAddress
public void accept(ConfigVisitor visitor) throws ConfigException
accept in interface VisitableConfigvisitor - The visitor of the configuration object.ConfigException - When the visit was not successful.Copyright © 2019–2025 Teslanet.nl. All rights reserved.