CommunicatorWaitForWithoutSend Method

Receives incomming data until waitingTerminate returns true. Input buffer is not cleared, incomming bytes are appended to the input buffer content, so the method can be called multiple times. If some data were received in the meantime and waitingTerminate returns true for that data, method returns immediately to process returned data. Method waitingTerminate checks always whole receive buffer. Before call of WaitForwithoutSend, waiting must be initialized by calling BeginWaiting wich sets up timeout-check events. Todo: BeginWaiting ands WaitForWithoutSend can be unified in one method - ???

Definition

Namespace: OddPrg.Communication
Assembly: OddPrg.Communication (in OddPrg.Communication.dll) Version: 2.0.0.2 (2.0.0.2)
C#
public virtual void WaitForWithoutSend(
	ByteBuffer data,
	CancellationToken cancelToken
)

Parameters

data  ByteBuffer
Buffer to store incoming data.
cancelToken  CancellationToken

See Also