PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Parameters of server
  • User name and password
  • Standard FTP
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Connects to an FTP server (File Transfer Protocol) or to a RPC server (Remote Procedure Call) powered by WINDEV.
Note: the connection of a new client cannot be automatically detected. A specific programming is required.
Example
ConnectRPC is int
// Connects to a RPC server on port 5010
ConnectRPC = NetConnect("148.61.125.245", RPCServer, ...
"USERNAME1", "PWD1", False, INTERNET, 5010)
Syntax
<Result> = NetConnect(<Computer Address> , <Server> , <User Name> , <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 (with quotes)
<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.
<User Name>: Ansi character string (with quotes)
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 (with quotes)
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
Time-out used for the connection. This parameter can correspond to:
  • the duration of the 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

Parameters of server

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

<User Name> and <Password> allow the server to find out whether the user 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]
USERNAME1 = PASS1
USERNAME2 = PASS2
USERNAME3 = PASS3

Standard FTP

WINDEV allows you to use a standard FTP with FTPConnect.
Components
WINDEVReports and Queries wd230com.dll
Windows Mobile wp230com.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment