Transmits a character string to an FTP server (File Transfer Protocol) or to a RPC server (Remote Procedure Call) powered by WINDEV.
Remark: To allow (or not) the use of this function on an FTP/RPC server, call
NetServerOption.
ConnectFTP is int
ConnectFTP = NetConnect("148.61.125.245", FTPServer, "GUEST", "")
...
NetSendBuffer(ConnectFTP, "Coming soon")
Syntax
NetSendBuffer(<Connection identifier> , <String to Send> [, <Additional information>])
<Connection identifier>: Integer
Connection identifier (returned by NetConnect).
<String to Send>: Character string
Text that must be sent to the server.
<Additional information>: Optional integer
Additional information added to the string.
Remarks
Characteristics of the send operation
The string is send via the Windows message WM_COPYDATA(74).
Retrieving the message on the server
To retrieve the string sent and the additional information on the server, you must intercept the event 74 via
Event (see the full example).
The _EVE.lParam variable points to a structure with the following format:
GetString is Structure
Wdata is int // Additional information sent
ISize is int // Size of the string sent (Number of bytes)
pInfo is int // Address of the string sent
END