DOFServerConfigBuildersetMaxReceiveSilence Method OpenDOF Object Access Library
Set this server's max receive silence.

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

C#
public DOFServerConfigBuilder setMaxReceiveSilence(
	int maxReceiveSilence
)

Parameters

maxReceiveSilence
Type: SystemInt32
The max receive 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 receive silence. If no packet is received for whatever reason during this period of time, then the server will terminate the connection.

The default is Config.DEFAULT_MAX_RECEIVE_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