ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Net functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Warning
This function is kept for backward compatibility. It is recommended to use a standard FTP, SSH or SCP server. For more details, see Handling files on an FTP server and Standard FTP functions.
Manages the rights of clients on the server (FTP (File Transfer Protocol) or RPC (Remote Procedure Call) server powered by WINDEV). The authorizations granted or denied are applied to all the clients that will connect to the server.
Caution: This function can only be used on the server. By default, the server allows the execution of all the Net functions.
Example
FTPServerID is int = NetStartServer(FTPServer)
...
// Forbids the use of NetExecute and NetEraseFile on the server
NetServerOption(FTPServerID, netOptionExecute, False)
NetServerOption(FTPServerID, netOptionEraseFile, False)
Syntax
NetServerOption(<Identifier of Server Connection> , <Action Name> , <Authorization>)
<Identifier of Server Connection>: Integer
Connection identifier (returned by NetStartServer).
<Action Name>: Integer constant
To each Net function having an action on the RPC/FTP server corresponds a WLanguage constant that can allow of forbid the corresponding action. The limit of the actions that can be performed on the server is performed via the following constants:
NetDirListnetOptionDirList
NetDiskListnetOptionDiskList
NetEraseFilenetOptionEraseFile
NetExecutenetOptionExecute
NetGetFilenetOptionGetFile
NetRemoteMessageBoxnetOptionRemoteMessageBox
NetRenameFilenetOptionRenameFile
NetSendBuffernetOptionSendBuffer
NetSendFilenetOptionSendFile
NetSendMessagenetOptionSendMessage
<Authorization>: Boolean
  • True: Authorizes the specified action.
  • False: Does not authorize the specified action.
Component: wd290com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/07/2023

Send a report | Local help