System::SocketSend

System::SocketSend sends a buffer to a remote host via a TCP connection that was previouly opened with CTScript::System::SocketConnect.

public System::SocketSend(
   OSHandle socketHandle,
   variable buffer
);

Parameters

socketHandle The socket handle of this connection.
buffer The data to send.

Return Values

The error.errorCode value will be set to the underlining windows 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\n
	User-Agent: TScript Software http://www.ekkySoftware.com/\n
	Host: www.ekkysofware.com\n\n");
System::SocketReceive(socket:fileBuffer);
System::MessageBox(fileBuffer.AString().ToString(),
	L"File Contents of / at ekkySoftware");

Requirements

TScript Version: 1.2

Also See

System::SocketConnect, System::SocketGetInfo, System::SocketReceive
 

Contact Ekky Software

All around the world Ekky Software is contactable seven days of the week by submitting the following details.

Thank you for your time and interest.
Ekky Software Customer Support Team.

Ekky Software Product Range
Ekky Software Homepage Texas Business Software ObjectDatabase++ TScript Ekky Software Homepage Texas Business Software ObjectDatabase++ TScript