tibasMetaspace_Connect()

Establishes a connection to a metaspace and returns a new Metaspace object.

Declaration

tibas_status tibasMetaspace_Connect
(tibasMetaspace* metaspace,
const char*      metaspaceName,
tibasMemberDef   memberDef)

Parameters

Parameter Description
metaspace Returns a Metaspace object that you use to define, join, or leave spaces.
metaspaceName A string specifying the metaspace name.

If null or “” is passed, the default name ms is used.

memberDef A MemberDef object used to specify member and connection attributes.

Remarks

Use the tibasMetaspace_Connect() function to connect to a specified metaspace and specify member and connection attributes for the connection, such as the discovery URL used to discover other members of the metaspace and the TCP port used to listen for incoming connections from new members.

Before calling tibasMetaspace_Connect(), create a MemberDef object and specify the attributes for the member definition using the tibasMemberDef functions. The memberDef parameter specifies a MemberDef struct that defines the characteristics of the connection, such as the discovery attribute and the listen attribute used for connections to the metaspace.