|
|
|
|
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. Caution: This function can only be used on the server. By default, the server allows the execution of all the Net functions. 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: | | NetDirList | netOptionDirList | NetDiskList | netOptionDiskList | NetEraseFile | netOptionEraseFile | NetExecute | netOptionExecute | NetGetFile | netOptionGetFile | NetRemoteMessageBox | netOptionRemoteMessageBox | NetRenameFile | netOptionRenameFile | NetSendBuffer | netOptionSendBuffer | NetSendFile | netOptionSendFile | NetSendMessage | netOptionSendMessage |
<Authorization>: Boolean - True: Authorizes the specified action.
- False: Does not authorize the specified action.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|