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.
Namespace: OddPrg.CommunicationAssembly: OddPrg.Communication (in OddPrg.Communication.dll) Version: 2.0.0.2 (2.0.0.2)
public virtual int GetDefaultTimeout(
int dataLength,
int replyLength
)
- dataLength Int32
- Length of request in bytes.
- replyLength Int32
- Proposed length of response in bytes.
Int32Time in milliseconds to wait before waiting timeout elapses.