implemented receive_message() function

This commit is contained in:
Andreas Steffen
2010-11-09 20:43:50 +01:00
parent 296636252b
commit e6b6fc881f
9 changed files with 172 additions and 2 deletions
+10
View File
@@ -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.
*/
+14
View File
@@ -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.
*/
+10
View File
@@ -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.
*/
+14
View File
@@ -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.
*/