WaitFor(ByteBuffer, WaitingTerminateProc, CancellationToken) | Sends specified data and waits for the response. The waiting loop will be terminated if waitingTerminateProc returns true. If ByteBuffer data is empty, nothing is sent. Incomming bytes are returned using parametr data (so data parameter cannot be null). The procedure clears ByteBuffer data before start of receiving. If multiple incomming streams should be received without sending output bytes, WaitForWithoutSend method should be used. |
WaitFor(String, WaitingTerminateProc, CancellationToken) | Sends specified data and waits for the response. The waiting loop will be terminated if waitingTerminateProc returns true. If string data is empty, nothing is sent. Incomming chars are returned using parametr data (so data parameter cannot be null). |
WaitFor(ByteBuffer, WaitingTerminateProc, ByteBuffer, CancellationToken) | Sends specified data and waits for the response. The waiting loop will be terminated if waitingTerminateProc returns true. If ByteBuffer data is empty, nothing is sent. Incomming bytes are returned using parametr data (so data parameter cannot be null). The procedure clears ByteBuffer data before start of receiving. If multiple incomming streams should be received without sending output bytes, WaitForWithoutSend method should be used. |