PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Server parameters
  • User name and password
  • Standard FTP
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
Connects to an FTP server (File Transfer Protocol) or to a RPC server (Remote Procedure Call) powered by WINDEV.
Remark: the connection of a new client cannot be automatically detected. A specific programming is required.
Example
ConnectRPC is int
// Se connecte à un serveur RPC sur le port 5010
ConnectRPC = NetConnect("148.61.125.245", RPCServer, ...
"NOMUTILIS1", "PASS1", False, INTERNET, 5010)
Syntax
<Result> = NetConnect(<Computer Address> , <Server> , <Username> , <Password> [, <Encryption> [, <Type of network> [, <Port number> [, <Key>]]]])
<Result>: Integer
  • Connection identifier,
  • 0 if the connection failed. ErrorInfo returns more details about the error.
<Computer Address>: Character string
<Server>: Constant
Type of server:
FTPServerA WINDEV FTP server is used. All the NET functions can be used.
RPCServerA WINDEV RPC server is used. The functions for file transfer are not available.
<Username>: ANSI character string
Name of user who is trying to connect. Combined with <Password>, this parameter allows you to identify the user (see the Notes).
<Password>: ANSI character string
Password associated with the user who is trying to connect (see the Notes).
<Encryption>: Optional boolean
  • True to encrypt the transmitted data,
  • False (default value) for no encryption.
If the server is started with the encryption option set to True (NetStartServer), the client computers will have to connect with NetConnect by using <Encryption> = True.
If the encryption is requested, the connection key (<Key> parameter) will also be encrypted.
<Type of network>: Optional integer constant
Timeout used for the connection. This parameter can correspond to:
  • the duration of response time-out in milliseconds,
  • a specific constant.
    INTERNET
    (default value)
    Value suited for Internet (long response time)
    INTRANETValue suited for Intranet (short response time)
<Port number>: Optional integer
Number of the port on which the server will be run. By default, the client attempts to connect to the server on port 2000 for RPC and on port 2001 for FTP.
<Key>: Optional Ansi character string
Used to secure the access to the server. Each client trying to connect to the server must use the same key as the one defined by NetStartServer. The connection is refused if the keys are different.
If the <Encryption> parameter is set to True, the key is encrypted.
Remarks

Server parameters

Some server parameters are required before a connection can be established:
  • IP address of the server
  • Type of server: RPC or FTP
  • Encryption of the server
  • Port of server
  • Key if this one is specified when starting the server

User name and password

The <User name> and <Password> parameters allow the server to recognize whether it is an authorized user or not.
The list of authorizations and passwords for the users is available in the WDRPCSRV.INI file found in the directory of the server project.
Example of file content:
[Passwords]
NOMUTILIS1 = PASS1
NOMUTILIS2 = PASS2
NOMUTILIS3 = PASS3

Standard FTP

WINDEV allows you to use a standard FTP with FTPConnect.
Component: wd270com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment