DOFServerConfigBuildersetMaxSendSilence Method OpenDOF Object Access Library
Set this server's max send silence.

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
public DOFServerConfigBuilder setMaxSendSilence(
	int maxSendSilence
)

Parameters

maxSendSilence
Type: SystemInt32
The max send silence to set on this server, in milliseconds. Must be greater than 0.

Return Value

Type: DOFServerConfigBuilder
The builder.
Remarks

Set this server's max send silence. If no packet is sent for whatever reason during this period of time, then a "heartbeat" or "ping" will be sent.

The default is Config.DEFAULT_MAX_SEND_SILENCE .

Optimally, the max receive silence should be much greater (at least 20 seconds greater) than the max send silence on the other end of the connection.

See Also

Reference