System.Net.Socket.TSocket.ReceiveString
Delphi
function ReceiveString(Flags: TSocketFlags = []): string;
C++
System::UnicodeString __fastcall ReceiveString(TSocketFlags Flags = TSocketFlags() );
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Net.Socket.pas System.Net.Socket.hpp |
System.Net.Socket | TSocket |
Description
Returns the received data as a string encoded using the specified character encoding.
Exceptions
A call to ReceiveString can raise any of the following exceptions:
Exception | Exception.Message | Scenarios |
---|---|---|
Network socket error: <error message> (<error code>), on API 'ioctlsocket' |
| |
Network socket error: <error message> (<error code>), on API 'recv' |
| |
Socket type not compatible with call |
|