System::SocketReceive
System::SocketReceive receives a buffer from a remote host via a TCP connection that was previouly opened with
System::SocketConnect.
public System::SocketReceive(
OSHandle socketHandle
: BString buffer
);
Parameters
| socketHandle |
The socket handle of this connection. |
| buffer |
The data recieved. |
Return Values
The error.errorCode value will be set to the underlining OS error message code and
the error.errorString will have a detailed description of the error
Remarks
Example Use
OSHandle socket;
System::SocketConnect("ekkySoftware.com":socket);
System::SocketSend(socket,"GET / HTTP/1.1\nUser-Agent: TScript Software http://www.ekkySoftware.com/\nHost: www.ekkysofware.com\n\n");
System::SocketReceive(socket:fileBuffer);
System::MessageBox(fileBuffer.AString().ToString(),L"File Contents of / at ekkySoftware");
Requirements
Also See
System::SocketConnect, System::SocketGetInfo, System::SocketSend
Copyright © 2009, Ekky Software Pty Ltd.