6 #ifndef OPENER_CIPCONNECTIONMANAGER_H_
7 #define OPENER_CIPCONNECTIONMANAGER_H_
9 #include "opener_user_conf.h"
150 #define SEQ_LEQ32(a, b) ( (int)( (a) - (b) ) <= 0 )
151 #define SEQ_GEQ32(a, b) ( (int)( (a) - (b) ) >= 0 )
152 #define SEQ_GT32(a, b) ( (int)( (a) - (b) ) > 0 )
159 #define SEQ_LEQ16(a, b) ( (short)( (a) - (b) ) <= 0 )
160 #define SEQ_GEQ16(a, b) ( (short)( (a) - (b) ) >= 0 )
163 static const int g_kCipConnectionManagerClassCode = 0x06;
void AddNewActiveConnection(const CipConnectionObject *const connection_object)
Insert the given connection object to the list of currently active and managed connections.
ConnectionManagerExtendedStatusCode
Connection Manager Error codes.
CipConnectionObject * GetConnectedOutputAssembly(const EipUint32 output_assembly_id)
CipConnectionObject * GetConnectedObject(const EipUint32 connection_id)
Get a connected object dependent on requested ConnectionID.
EipStatus
EIP stack status enum.
void CloseConnection(CipConnectionObject *RESTRICT connection_object)
Close the given connection.
EipStatus ConnectionManagerInit(EipUint16 unique_connection_id)
Initialize the data of the connection manager object.
void RemoveFromActiveConnections(CipConnectionObject *const connection_object)
Removes connection from the list of active connections.
CipUint GetConnectionId(void)
Generate a new connection Id utilizing the Incarnation Id as described in the EIP specs...
void(* CloseSessionFunction)(const CipConnectionObject *const connection_object)
void CheckForTimedOutConnectionsAndCloseTCPConnections(const CipConnectionObject *const connection_object, CloseSessionFunction CloseSessions)
ConnectionManagerGeneralStatus
Connection Type constants of the Forward Open service request Indicates either a. ...
EipBool8 IsConnectedOutputAssembly(const EipUint32 instance_number)