Visual Basic (Usage) | ![]() |
---|---|
Dim instance As TcpBase Dim delimiter As String Dim value As Data value = instance.Read(delimiter) |
Parameters
- delimiter
- A delimiter string to search for. If null, the socket is read until a timeout occurs or the server closes the connection.
Return Value
A Data object encapsulating the received data.This method blocks until the delimiter is found, the timeout period expires, or the server closes the connection. If the method times out, all received data will be returned, and an exception will NOT be thrown. Instead, the returned Data.Delimiter will be null, indicating the delimiter was not found.
Target Platforms: Microsoft .NET Framework 2.0