GitHub
Download
Forum
Overview
Tutorial
C++ API
C# API
General interfaces
Data interfaces
UDomain
UStorage
UObject
UList
UBitFlagSet
UBitFlagSetSingle
WDomain
Create
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
DTDL
DADL
Setup
WDomain.Connect
Establishes a connection to a DataFS server.
Syntax
int
Connect(
String
p_strAddress,
U
Int16
p_usPort,
DataFoundation.stcConnectionOptions
p_pOptions,
DataFoundation.ISystemCallback
p_pCallback
);
Parameter
p_strAddress
Type:
String
A string containing the host name or IP address that the connection should be established to.
p_usPort
Type:
UInt16
The port that the connection should be established to.
p_pOptions
Type:
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
Type:
DataFoundation.ISystemCallback
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