CommunicatorGetDefaultStartReceiveTimeout Method

Returns maximal time to wait for the first response counted after a request is sent. This method should be used to compute StartReceiveTimeout and NextReceiveTimeout before every communication id CheckDataReceive is set to true.

Definition

Namespace: OddPrg.Communication
Assembly: OddPrg.Communication (in OddPrg.Communication.dll) Version: 2.0.0.2 (2.0.0.2)
C#
public virtual int GetDefaultStartReceiveTimeout(
	int dataLength,
	int replyLength
)

Parameters

dataLength  Int32
Length of request in bytes.
replyLength  Int32
Proposed length of response in bytes.

Return Value

Int32
Time in milliseconds to wait before waiting timeout elapses.

See Also