Provides global configuration, statistics, and licensing management for the library.
More...
import "sfFTPLib.idl";
|
| HRESULT | LoadLicense ([in] BSTR productKey) |
| | Applies a product key to license the component.
|
|
| BSTR | Version [get] |
| | Retrieves the version of the library.
|
| VARIANT_BOOL | FIPS [get, set] |
| | Enables or disables FIPS 140-2 compliant mode.
|
| ULONGLONG | TotalBytesReceived [get] |
| | Retrieves the total number of bytes received by all instances of the library.
|
| ULONGLONG | TotalBytesSent [get] |
| | Retrieves the total number of bytes sent by all instances of the library.
|
| BSTR | ActivationUrl [get, set] |
| | Sets or retrieves the URL used for online activation.
|
Provides global configuration, statistics, and licensing management for the library.
This interface acts as the central entry point for library-wide settings that affect all connections. It is typically implemented as a Singleton.
◆ LoadLicense()
| HRESULT IGlobal::LoadLicense |
( |
[in] BSTR | productKey | ) |
|
Applies a product key to license the component.
Attempts to activate the library using the provided key.
Usage: Call this method once at the startup of your application, before initializing any sfFTPLib::FTPConnectionMTA or sfFTPLib::SSHConnection objects
- Parameters
-
| [in] | productKey | The product key string received upon purchase.
- Format: A GUID-like string, e.g., 639BC46E-66B6-489B-AB68-3F8DF04547EF.
|
◆ ActivationUrl
| BSTR IGlobal::ActivationUrl |
|
getsetproperty |
Sets or retrieves the URL used for online activation.
By default, the library connects to the official licensing server. Use this property only if you are using a proxy, an internal licensing server, or need to override the endpoint for firewall reasons.
- Parameters
-
| [in] | newVal | The full URL of the activation server. |
| [out] | retval | Pointer to a BSTR receiving the current URL. |
◆ FIPS
| VARIANT_BOOL IGlobal::FIPS |
|
getsetproperty |
Enables or disables FIPS 140-2 compliant mode.
When set to TRUE, the library enforces the Federal Information Processing Standards (FIPS) security requirements.
- Parameters
-
| [in] | newValue | Boolean value to enable (TRUE) or disable (FALSE) FIPS mode. |
| [out] | retval | Pointer to a VARIANT_BOOL receiving the current state. |
◆ TotalBytesReceived
| ULONGLONG IGlobal::TotalBytesReceived |
|
getproperty |
Retrieves the total number of bytes received by all instances of the library.
This counter aggregates the incoming data traffic (downloads, directory listings, command responses) for the lifetime of the process.
- Parameters
-
| [out] | retval | Pointer to a ULONGLONG (unsigned 64-bit integer) receiving the byte count. |
◆ TotalBytesSent
| ULONGLONG IGlobal::TotalBytesSent |
|
getproperty |
Retrieves the total number of bytes sent by all instances of the library.
This counter aggregates the outgoing data traffic (uploads, commands) for the lifetime of the process.
- Parameters
-
| [out] | retval | Pointer to a ULONGLONG (unsigned 64-bit integer) receiving the byte count. |
◆ Version
Retrieves the version of the library.
Returns the version string in the format Major.Minor.Build.Revision (e.g., "1.0.2.15").
- Parameters
-
| [out] | retval | Pointer to a BSTR that receives the version string. |
The documentation for this interface was generated from the following file: