implemented receive_message() function
This commit is contained in:
@@ -23,6 +23,8 @@
|
||||
|
||||
#include <tnc/tncifimc.h>
|
||||
|
||||
#include <library.h>
|
||||
|
||||
typedef struct imc_t imc_t;
|
||||
|
||||
struct imc_t {
|
||||
@@ -151,6 +153,14 @@ struct imc_t {
|
||||
void (*set_message_types)(imc_t *this, TNC_MessageTypeList supported_types,
|
||||
TNC_UInt32 type_count);
|
||||
|
||||
/**
|
||||
* Check if the IMC supports a given message type.
|
||||
*
|
||||
* @param message_type message type
|
||||
* @return TRUE if supported
|
||||
*/
|
||||
bool (*type_supported)(imc_t *this, TNC_MessageType message_type);
|
||||
|
||||
/**
|
||||
* Destroys an imc_t object.
|
||||
*/
|
||||
|
||||
@@ -69,6 +69,20 @@ struct imc_manager_t {
|
||||
TNC_MessageTypeList supported_types,
|
||||
TNC_UInt32 type_count);
|
||||
|
||||
/**
|
||||
* Delivers a message to interested IMCs.
|
||||
*
|
||||
* @param connection_id ID of connection over which message was received
|
||||
* @param message message
|
||||
* @param message_len message length
|
||||
* @param message_type message type
|
||||
*/
|
||||
void (*receive_message)(imc_manager_t *this,
|
||||
TNC_ConnectionID connection_id,
|
||||
TNC_BufferReference message,
|
||||
TNC_UInt32 message_len,
|
||||
TNC_MessageType message_type);
|
||||
|
||||
/**
|
||||
* Destroy an IMC manager and all its controlled instances.
|
||||
*/
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
|
||||
#include <tnc/tncifimv.h>
|
||||
|
||||
#include <library.h>
|
||||
|
||||
typedef struct imv_t imv_t;
|
||||
|
||||
struct imv_t {
|
||||
@@ -151,6 +153,14 @@ struct imv_t {
|
||||
void (*set_message_types)(imv_t *this, TNC_MessageTypeList supported_types,
|
||||
TNC_UInt32 type_count);
|
||||
|
||||
/**
|
||||
* Check if the IMV supports a given message type.
|
||||
*
|
||||
* @param message_type message type
|
||||
* @return TRUE if supported
|
||||
*/
|
||||
bool (*type_supported)(imv_t *this, TNC_MessageType message_type);
|
||||
|
||||
/**
|
||||
* Destroys an imv_t object.
|
||||
*/
|
||||
|
||||
@@ -62,6 +62,20 @@ struct imv_manager_t {
|
||||
TNC_MessageTypeList supported_types,
|
||||
TNC_UInt32 type_count);
|
||||
|
||||
/**
|
||||
* Delivers a message to interested IMVs.
|
||||
*
|
||||
* @param connection_id ID of connection over which message was received
|
||||
* @param message message
|
||||
* @param message_len message length
|
||||
* @param message_type message type
|
||||
*/
|
||||
void (*receive_message)(imv_manager_t *this,
|
||||
TNC_ConnectionID connection_id,
|
||||
TNC_BufferReference message,
|
||||
TNC_UInt32 message_len,
|
||||
TNC_MessageType message_type);
|
||||
|
||||
/**
|
||||
* Destroy an IMV manager and all its controlled instances.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user