ScktComp.TCustomWinSocket.ReceiveText

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From ScktComp.pas

	function ReceiveText(): AnsiString;


Unit: ScktComp

Type: method

Visibility: public

Member Of: TCustomWinSocket

C++ Information

From ScktComp.hpp

	System::AnsiStringT<0> __fastcall ReceiveText(void);


Unit: ScktComp

Type: method

Visibility: public

Member Of: TCustomWinSocket

Description

Reads a string from the socket connection.


Use ReceiveText to read a string from the socket connection in the OnSocketEvent event handler of a Windows socket object or in the OnRead or OnClientRead event handler of a socket component. ReceiveText returns the string that was read.

ReceiveText only works in response to a read notification to a non-blocking windows socket. Blocking sockets must use a TWinSocketStream for reading. The TWinSocketStream object waits for the remote socket to be ready before transferring information.

See Also

Personal tools
Translations
Newest Version