|
|
|
|
|
NetServerOption (Function) In french: NetOptionServeur 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. Attention: This function can only be executed on the server. By default, the server allows all Net functions to be executed. FTPServerID is int = NetStartServer(FTPServer)
...
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: | | NetDirList | netOptionDirList | NetDiskList | netOptionDiskList | NetEraseFile | netOptionEraseFile | NetExecute | netOptionExecute | NetGetFile | netOptionGetFile | NetRemoteMessageBox | netOptionRemoteMessageBox | NetRenameFile | netOptionRenameFile | NetSendBuffer | netOptionSendBuffer | NetSendFile | netOptionSendFile | NetSendMessage | netOptionSendMessage |
<Authorization>: Boolean - True Allow the specified action.
- False Does not authorize the specified action.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|