MAK Legion API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
c_connection.h
Go to the documentation of this file.
1 /*********************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************************/
8 #pragma once
9 
12 
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
20  typedef unsigned long long ConnectionHandle;
21 
28  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_net_createConnection(ConfigHandle configHandle, DatabaseHandle dbHandle, ConnectionHandle* connHandle);
29 
35 
41  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_net_owershipManager(ConnectionHandle connHandle, OwnershipManagerHandle *ownershipMgrHandle);
42 
48  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_isConnected(ConnectionHandle connHandle, Bool* connected);
49 
55  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_startProcessingMessages(ConnectionHandle connHandle, double maxProcessingTime = 0.0);
56 
62 
68 
74  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_clientId(ConnectionHandle connHandle, UInt32* clientId);
75 
82  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_interest(ConnectionHandle connHandle, LEG_BoundaryType* type, LEG_Boundary* boundary = 0);
83 
89  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_setInterest(ConnectionHandle connHandle, LEG_Boundary* boundary);
90 
96 
97 
104  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_intent(ConnectionHandle connHandle, LEG_BoundaryType* type, LEG_Boundary* boundary = 0);
105 
111  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_setIntent(ConnectionHandle connHandle, LEG_Boundary* boundary);
112 
118 
124  /* @{ */
125  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_setAttributeSetInterest(ConnectionHandle connHandle, const UInt32 attrSetType = 0xffff);
126  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_addAttributeSetInterest(ConnectionHandle connHandle, const UInt32 attrSetType = 0xffff);
127  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_removeAttributeSetInterest(ConnectionHandle connHandle, const UInt32 attrSetType = 0xffff);
128  /* @} */
129 
130 #ifdef __cplusplus
131 }
132 #endif
UInt64 ConnectionHandle
Definition: connection.h:19
Definition: c_boundary.h:38
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_startProcessingMessages(ConnectionHandle connHandle, double maxProcessingTime=0.0)
LEG_ReturnCode
Definition: c_api.h:61
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_intent(ConnectionHandle connHandle, LEG_BoundaryType *type, LEG_Boundary *boundary=0)
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_removeIntent(ConnectionHandle connHandle)
unsigned long long OwnershipManagerHandle
Definition: c_api.h:25
unsigned long long DatabaseHandle
Definition: c_api.h:19
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_interest(ConnectionHandle connHandle, LEG_BoundaryType *type, LEG_Boundary *boundary=0)
unsigned int UInt32
Definition: c_api.h:53
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_isConnected(ConnectionHandle connHandle, Bool *connected)
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_stopProcessingMessages(ConnectionHandle connHandle)
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_net_owershipManager(ConnectionHandle connHandle, OwnershipManagerHandle *ownershipMgrHandle)
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_net_createConnection(ConfigHandle configHandle, DatabaseHandle dbHandle, ConnectionHandle *connHandle)
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_setIntent(ConnectionHandle connHandle, LEG_Boundary *boundary)
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_setInterest(ConnectionHandle connHandle, LEG_Boundary *boundary)
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_removeAttributeSetInterest(ConnectionHandle connHandle, const UInt32 attrSetType=0xffff)
unsigned long long ConfigHandle
Definition: c_api.h:22
LEG_BoundaryType
Definition: c_boundary.h:20
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_addAttributeSetInterest(ConnectionHandle connHandle, const UInt32 attrSetType=0xffff)
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_waitUntilDonProcessingMessages(ConnectionHandle connHandle)
UInt8 Bool
Definition: c_api.h:57
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_removeInterest(ConnectionHandle connHandle)
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_setAttributeSetInterest(ConnectionHandle connHandle, const UInt32 attrSetType=0xffff)
#define LEGIONNETRUNTIME_DLL
Definition: legionNetClientImpl/export.h:24
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_net_destroyConnection(ConnectionHandle connHandle)
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_clientId(ConnectionHandle connHandle, UInt32 *clientId)

Document ID: Generated on Mon Mar 8 15:11:30 EST 2021 from SVN revision 225633
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)