CommunicatorWaitForStrings(ByteBuffer, String, ByteBuffer, CancellationToken) Method
Sends the content of data argument and waits until any string from specified list is received. Incomming data are returned in the data argument.
Incoming bytes are transformed using InputEncoding.
Namespace: OddPrg.CommunicationAssembly: OddPrg.Communication (in OddPrg.Communication.dll) Version: 2.0.0.2 (2.0.0.2)
public void WaitForStrings(
ByteBuffer data,
string[] stringList,
ByteBuffer displayData,
CancellationToken cancelToken
)
Parameters
- data ByteBuffer
- Buffer for outgoing/incomming data.
- stringList String
- List of strings that could terminate waiting for response.
- displayData ByteBuffer
-
Data that could be displayed in a log. If this parameter is null, bytes from data parameter will be displayed. It can be useful e.g. when
sending a password.
- cancelToken CancellationToken