PC SOFT

WINDEV的在线文档

  • Parameters of the server
  • User name and password
  • Standard FTP
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Connects to an FTP server (File 传递 Protocol) or to an RPC server (Remote Procedure Call) created by WinDev.

Note: the connection of a new client cannot be automatically detected. A specific programming is required.

例子
ConnectRPC整数型
// Connects to a RPC server on port 5010
ConnectRPC网络连接"148.61.125.245"服务器.RPC,...
"USERNAME1""PWD1"互联网5010

语法
<Result> = 网络连接(<Computer Address> , <Server> , <User Name> , <Password> [, <Encryption> [, <Type of Network> [, <Port Number> [, <Key>]]]])
<Result>: Integer
  • Identifier of the connection,
  • 0 if the connection failed. 错误信息 returns more details about the error.
<Computer Address>: Character string (with quotes)
<Server>: Constant
Type of server:
服务器.FTPUsing a WinDev FTP server. All the NET functions can be used.
服务器.RPCUsing a WinDev RPC server. The functions for file transfer are not available.
<User Name>: Ansi character string (with quotes)
Name of the 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
  • to encrypt the transmitted data,
  • (default value) for no encryption.
If the server is started with the encryption option set to (网络启动服务器), the client computers must connect with 网络连接 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.
互联网
(default value)
Value suited for Internet (long response time)
内联网Value suited for Intranet (short response time)
<Port Number>: Optional integer
Number of the port on which the server must 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 网络启动服务器. The connection is refused if the keys are different.

If the <Encryption> parameter is set to , the key is encrypted.

注意

Parameters of the 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 the server
  • Key if this one is specified when the server is strated

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 standard FTP with FTP建立连接.

组件
WinDev wd200com.dll