MAK Legion 1.1 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) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************************/
8 #pragma once
9 
12 
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 
26  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_net_createConnection(ConfigHandle configHandle, DatabaseHandle dbHandle, ConnectionHandle* connHandle);
27 
32  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_net_destroyConnection(ConnectionHandle connHandle);
33 
39  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_net_owershipManager(ConnectionHandle connHandle, OwnershipManagerHandle *ownershipMgrHandle);
40 
46  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_isConnected(ConnectionHandle connHandle, Bool* connected);
47 
53  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_startProcessingMessages(ConnectionHandle connHandle, double maxProcessingTime = 0.0);
54 
60 
66 
72  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_clientId(ConnectionHandle connHandle, ClientId* clientId);
73 
80  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_interest(ConnectionHandle connHandle, LEG_BoundaryType* type, LEG_Boundary* boundary = 0);
81 
88  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_setInterest(ConnectionHandle connHandle, LEG_Boundary* boundary, LEG_InterestGranularity granularity);
89 
94  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_removeInterest(ConnectionHandle connHandle);
95 
102 
109  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_intent(ConnectionHandle connHandle, LEG_BoundaryType* type, LEG_Boundary* boundary = 0);
110 
116  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_setIntent(ConnectionHandle connHandle, LEG_Boundary* boundary);
117 
122  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_removeIntent(ConnectionHandle connHandle);
123 
129  /* @{ */
130  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_setAttributeSetInterest(ConnectionHandle connHandle, const UInt32 attrSetType = 0xffff);
131  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_addAttributeSetInterest(ConnectionHandle connHandle, const UInt32 attrSetType = 0xffff);
132  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_removeAttributeSetInterest(ConnectionHandle connHandle, const UInt32 attrSetType = 0xffff);
133  /* @} */
134 
140  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_isAbsoluteTimestamp(ConnectionHandle connHandle, LEG_Bool* isAbsoluteTimestamp = 0);
141 
147  LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_setIsAbsoluteTimestamp(ConnectionHandle connHandle, LEG_Bool absoluteTimeFlag);
148 
149 
150 #ifdef __cplusplus
151 }
152 #endif
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_interestGranularity(ConnectionHandle connHandle, LEG_InterestGranularity *granularity)
Definition: c_boundary.h:44
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_startProcessingMessages(ConnectionHandle connHandle, double maxProcessingTime=0.0)
LEG_ReturnCode
Definition: c_api.h:62
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:26
unsigned long long DatabaseHandle
Definition: c_api.h:19
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_isAbsoluteTimestamp(ConnectionHandle connHandle, LEG_Bool *isAbsoluteTimestamp=0)
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_interest(ConnectionHandle connHandle, LEG_BoundaryType *type, LEG_Boundary *boundary=0)
unsigned int UInt32
Definition: c_api.h:54
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_setIsAbsoluteTimestamp(ConnectionHandle connHandle, LEG_Bool absoluteTimeFlag)
LEG_InterestGranularity
Definition: c_boundary.h:37
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_clientId(ConnectionHandle connHandle, ClientId *clientId)
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_removeAttributeSetInterest(ConnectionHandle connHandle, const UInt32 attrSetType=0xffff)
unsigned long long ConnectionHandle
Definition: c_api.h:33
unsigned long long ConfigHandle
Definition: c_api.h:22
LEG_BoundaryType
Definition: c_boundary.h:20
LEG_Bool
Definition: c_api.h:111
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_addAttributeSetInterest(ConnectionHandle connHandle, const UInt32 attrSetType=0xffff)
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_waitUntilDonProcessingMessages(ConnectionHandle connHandle)
unsigned int ClientId
Definition: c_api.h:40
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_setInterest(ConnectionHandle connHandle, LEG_Boundary *boundary, LEG_InterestGranularity granularity)
UInt8 Bool
Definition: c_api.h:58
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_removeInterest(ConnectionHandle connHandle)
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_connection_setAttributeSetInterest(ConnectionHandle connHandle, const UInt32 attrSetType=0xffff)
LEGIONNETRUNTIME_DLL LEG_ReturnCode legion_net_destroyConnection(ConnectionHandle connHandle)

Document ID: Generated on Wed May 26 15:17:05 EDT 2021 from SVN revision 229676
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)