GitHub    Download    Forum
Overview
Tutorial
C++ API
General interfaces
Data interfaces
UDomain
UStorage
UObject
UList
UBitFlagSet
UBitFlagSetSingle
WDomain
Domain_Create
Domain_Destroy
AbortTransaction
Connect
Create
CreateTransaction
CreateWaitObject
DestroyTransaction
DestroyWaitObject
Disconnect
DisconnectAll
Execute
ExecuteAsync
ExecuteResult
ExecuteWait
GetConnection
GetDomain
GetLastError
GetSchema
GetStorage
Initialize
InsertNamedObject
IsConnected
LoadData
Open
OpenNamedObject
Query
QueryNamedObject
QueryNamedObjectId
QueryNamedObjectLink
QueryNamedObjectMultiple
QueryStorage
ReleaseAllStorages
ReleaseStorage
RemoveNamedObject
ResetTransaction
StoreData
Uninitialize
WaitableHandle
WObject
IEventClient
Schema interfaces
Configuration interfaces
Structures
Error codes
C# API
DTDL
DADL
Setup

WDomain::Connect

Establishes a connection to a DataFS server.

Syntax

HRESULT Connect(
[in] const wchar_t* p_strAddress,
[in] UINT16 p_usPort,
[in] const DataFoundation::stcConnectionOptions* p_pOptions,
[in] DataFoundation::ISystemCallback* p_pCallback
);

Parameter

p_strAddress [in]
Type: const wchar_t*
A pointer to a string containing the host name or IP address that the connection should be established to.
p_usPort [in]
Type: UINT16
The port that the connection should be established to.
p_pOptions [in]
Type: const DataFoundation::stcConnectionOptions*
Pointer to a set of options used to establish the connection.
Pass NULL for an unencrypted connection or a pointer to a stcConnectionOptions to establish an encrypted connection.
p_pCallback [in]
Type: DataFoundation::ISystemCallback*
Pointer to a callback interface that receives notifications about the domain.

Return value

S_OK or an error from the Error Codes.

Remarks

Call WDomain::Disconnect or WDomain::DisconnectAll to close the connection.
© 2022 Mobiland AG