GitHub    Download    Forum
Overview
Tutorial
C++ API
C# API
General interfaces
Data interfaces
Schema interfaces
Configuration interfaces
Callback interfaces
Structures
Error codes
DataAccess interfaces
Connection
Create
Destroy
Connect
Disconnect
DisconnectAll
GetConnection
GetSchema
Initialize
IsConnected
QueryStorage
Reconnect
ReleaseAllStorages
ReleaseStorage
Uninitialize
WDomain
WObject
WBase
WinRT API
DTDL
DADL
Setup

Connection.Connect

Establishes a connection to a DataFS server.

Syntax

int Connect(
in String p_strAddress,
in UInt16 p_usPort,
in DataFS::stcConnectionOptions p_pOptions,
in DataFS::ISystemCallback p_pCallback
);

Parameter

p_strAddress
Type: in String
A string containing the host name or IP address that the connection should be established to.
p_usPort
Type: in UInt16
The port that the connection should be established to.
p_pOptions
Type: in DataFS::stcConnectionOptions
A set of options used to establish the connection.
Pass null for an unencrypted connection or a stcConnectionOptions to establish an encrypted connection.
p_pCallback
Type: in DataFS::ISystemCallback
A callback interface that receives notifications about the domain.

Return value

S_OK or an error from the Error Codes.

Remarks

Call Connection.Disconnect or Connection.DisconnectAll to close the connection.
© 2025 Mobiland AG