PowerTCP Emulation for .NET
ReadToEnd Method




Read until the connection is closed or an exception is thrown.
Syntax
Public Function ReadToEnd() As Data
Dim instance As TcpBase
Dim value As Data
 
value = instance.ReadToEnd()
public Data ReadToEnd()
public: Data* ReadToEnd(); 
public:
Data^ ReadToEnd(); 

Return Value

A Data object encapsulating the received data. Returns null if the socket is closed.
Exceptions
ExceptionDescription
DataExceptionA failure occurred before the normal end of stream was found. The DataException.DataRead property contains any data received before the failure occurred.
Remarks

If a DataException is thrown, the DataException.DataRead property contains any data received prior to the exception.

See Also

Reference

TcpBase Class
TcpBase Members


PowerTCP Emulation for .NET Documentation Version 4.7
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic