GitHub
Download
Forum
Overview
Tutorial
C++ API
General interfaces
Connection
Connection_Create
Connection_Destroy
Connect
Disconnect
QueryConfiguration
QueryControl
QueryDomain
QuerySchemaEdit
IInstance
ISystemCallback
Memory
ObjectId
Thread
Data interfaces
Schema interfaces
Configuration interfaces
Structures
Error codes
C# API
DTDL
DADL
Setup
Connection::Connect
Establishes a connection to a DataFS server.
Syntax
HRESULT
ConnectA(
[in]
const
char
*
p_strAddress,
[in]
U
INT16
p_usPort,
[in]
const
stcConnectionOptions*
p_pOptions
);
HRESULT
ConnectW(
[in]
const
w
char
_t
*
p_strAddress,
[in]
U
INT16
p_usPort,
[in]
const
stcConnectionOptions*
p_pOptions
);
Parameter
p_strAddress
[in]
Type:
const char* / 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 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.
Return value
S_OK or an error from the
Error Codes
.
Remarks
Call
Connection::Disconnect
to close the connection.
© 2022 Mobiland AG