CommunicatorGetDefaultTimeout Method

Returns the maximal time for communication with a device. TimeoutScale and ReplyDelay properties will be used for computation. This method should be used to compute Rimeout before every communication id CheckTimeout 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 GetDefaultTimeout(
	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