#include "fipa_acl.h"
Go to the source code of this file.
typedef fipa_acl_envelope_t* fipa_acl_envelope_p |
Definition at line 45 of file fipa_acl_envelope.h.
typedef struct fipa_acl_envelope_Received_s fipa_acl_envelope_Received_t |
typedef struct fipa_acl_envelope_s fipa_acl_envelope_t |
typedef struct fipa_acl_Param_s fipa_acl_Param_t |
fipa_acl_envelope_t* fipa_acl_envelope_Copy | ( | fipa_acl_envelope_t * | envelope | ) |
Definition at line 150 of file fipa_envelope.c.
References fipa_acl_envelope_New(), fipa_acl_Param_Copy(), fipa_acl_envelope_s::num_params, and fipa_acl_envelope_s::params.
int fipa_acl_envelope_Destroy | ( | fipa_acl_envelope_t * | envelope | ) |
Definition at line 137 of file fipa_envelope.c.
References fipa_acl_Param_Destroy(), fipa_acl_envelope_s::num_params, and fipa_acl_envelope_s::params.
Referenced by acc_connection_Thread().
fipa_acl_envelope_t* fipa_acl_envelope_New | ( | void | ) |
Definition at line 129 of file fipa_envelope.c.
Referenced by acc_connection_Thread(), and fipa_acl_envelope_Copy().
fipa_acl_envelope_Received_t* fipa_acl_envelope_Received_Copy | ( | fipa_acl_envelope_Received_t * | received | ) |
Definition at line 69 of file fipa_envelope.c.
References fipa_acl_envelope_Received_New(), fipa_DateTime_Copy(), fipa_url_Copy(), fipa_acl_envelope_Received_s::received_by, fipa_acl_envelope_Received_s::received_date, fipa_acl_envelope_Received_s::received_from, fipa_acl_envelope_Received_s::received_id, fipa_acl_envelope_Received_s::received_via, and strdup.
Referenced by fipa_acl_Param_Copy().
int fipa_acl_envelope_Received_Destroy | ( | fipa_acl_envelope_Received_t * | received | ) |
Definition at line 57 of file fipa_envelope.c.
References fipa_DateTime_Destroy(), fipa_url_Destroy(), fipa_acl_envelope_Received_s::received_by, fipa_acl_envelope_Received_s::received_date, fipa_acl_envelope_Received_s::received_from, fipa_acl_envelope_Received_s::received_id, and fipa_acl_envelope_Received_s::received_via.
Referenced by fipa_acl_Param_Destroy().
fipa_acl_envelope_Received_t* fipa_acl_envelope_Received_New | ( | void | ) |
Definition at line 48 of file fipa_envelope.c.
Referenced by fipa_acl_envelope_Received_Copy(), and fipa_envelope_HandleReceived().
fipa_acl_Param_t* fipa_acl_Param_Copy | ( | fipa_acl_Param_t * | param | ) |
Definition at line 110 of file fipa_envelope.c.
References fipa_acl_Param_s::acl_representation, fipa_acl_Param_s::comments, fipa_acl_Param_s::date, fipa_acl_envelope_Received_Copy(), fipa_acl_Param_New(), fipa_agent_identifier_Copy(), fipa_agent_identifier_set_Copy(), fipa_DateTime_Copy(), fipa_acl_Param_s::from, fipa_acl_Param_s::intended_receiver, fipa_acl_Param_s::payload_encoding, fipa_acl_Param_s::payload_length, fipa_acl_Param_s::received, strdup, and fipa_acl_Param_s::to.
Referenced by fipa_acl_envelope_Copy().
int fipa_acl_Param_Destroy | ( | fipa_acl_Param_t * | param | ) |
Definition at line 93 of file fipa_envelope.c.
References fipa_acl_Param_s::acl_representation, fipa_acl_Param_s::comments, fipa_acl_Param_s::date, fipa_acl_envelope_Received_Destroy(), fipa_agent_identifier_Destroy(), fipa_agent_identifier_set_Destroy(), fipa_DateTime_Destroy(), fipa_acl_Param_s::from, fipa_acl_Param_s::intended_receiver, fipa_acl_Param_s::payload_encoding, fipa_acl_Param_s::payload_length, fipa_acl_Param_s::received, and fipa_acl_Param_s::to.
Referenced by fipa_acl_envelope_Destroy().
fipa_acl_Param_t* fipa_acl_Param_New | ( | void | ) |
Definition at line 85 of file fipa_envelope.c.
Referenced by fipa_acl_Param_Copy(), and fipa_envelope_HandleTo().
char* fipa_envelope_Compose | ( | fipa_acl_message_t * | fipa_acl | ) |
Definition at line 869 of file fipa_envelope.c.
References fipa_envelope_Compose__envelope(), MXML_ADD_AFTER, MXML_ADD_TO_PARENT, MXML_NO_CALLBACK, mxmlAdd(), mxmlDelete(), mxmlLoadString(), mxmlSaveAllocString(), and node.
Referenced by MC_AclSend().
mxml_node_t* fipa_envelope_Compose__acl_representation | ( | fipa_acl_message_t * | fipa_acl | ) |
Definition at line 1089 of file fipa_envelope.c.
References mxmlNewElement(), mxmlNewText(), and node.
Referenced by fipa_envelope_Compose__params().
mxml_node_t* fipa_envelope_Compose__date | ( | fipa_acl_message_t * | fipa_acl | ) |
Definition at line 1117 of file fipa_envelope.c.
References buf, mxmlNewElement(), mxmlNewText(), and node.
Referenced by fipa_envelope_Compose__params().
mxml_node_t* fipa_envelope_Compose__envelope | ( | fipa_acl_message_t * | fipa_acl | ) |
Definition at line 894 of file fipa_envelope.c.
References fipa_envelope_Compose__params(), MXML_ADD_AFTER, MXML_ADD_TO_PARENT, mxmlAdd(), mxmlNewElement(), and node.
Referenced by fipa_envelope_Compose().
mxml_node_t* fipa_envelope_Compose__from | ( | fipa_acl_message_t * | fipa_acl | ) |
Definition at line 1021 of file fipa_envelope.c.
References fipa_agent_identifier_s::addresses, buf, dynstring_Append(), dynstring_Destroy(), dynstring_New(), g_mc_platform, mc_platform_s::hostname, dynstring_s::message, mxmlNewElement(), mxmlNewText(), fipa_agent_identifier_s::name, fipa_url_sequence_s::num, mc_platform_s::port, fipa_acl_message_s::sender, fipa_url_s::str, and fipa_url_sequence_s::urls.
Referenced by fipa_envelope_Compose__params().
mxml_node_t* fipa_envelope_Compose__intended_receiver | ( | fipa_acl_message_t * | fipa_acl | ) |
Definition at line 1146 of file fipa_envelope.c.
References fipa_agent_identifier_s::addresses, fipa_agent_identifier_set_s::fipa_agent_identifiers, mxmlNewElement(), mxmlNewText(), fipa_agent_identifier_s::name, node, fipa_url_sequence_s::num, fipa_acl_message_s::receiver, fipa_url_s::str, and fipa_url_sequence_s::urls.
Referenced by fipa_envelope_Compose__params().
mxml_node_t* fipa_envelope_Compose__params | ( | fipa_acl_message_t * | fipa_acl | ) |
Definition at line 914 of file fipa_envelope.c.
References fipa_envelope_Compose__acl_representation(), fipa_envelope_Compose__date(), fipa_envelope_Compose__from(), fipa_envelope_Compose__intended_receiver(), fipa_envelope_Compose__payload_encoding(), fipa_envelope_Compose__to(), MXML_ADD_AFTER, MXML_ADD_TO_PARENT, mxmlAdd(), mxmlElementSetAttr(), mxmlNewElement(), and node.
Referenced by fipa_envelope_Compose__envelope().
mxml_node_t* fipa_envelope_Compose__payload_encoding | ( | fipa_acl_message_t * | fipa_acl | ) |
Definition at line 1103 of file fipa_envelope.c.
References mxmlNewElement(), mxmlNewText(), and node.
Referenced by fipa_envelope_Compose__params().
mxml_node_t* fipa_envelope_Compose__to | ( | fipa_acl_message_t * | fipa_acl | ) |
Definition at line 975 of file fipa_envelope.c.
References fipa_agent_identifier_s::addresses, fipa_agent_identifier_set_s::fipa_agent_identifiers, mxmlNewElement(), mxmlNewText(), fipa_agent_identifier_s::name, node, fipa_url_sequence_s::num, fipa_agent_identifier_set_s::num, fipa_acl_message_s::receiver, fipa_url_s::str, and fipa_url_sequence_s::urls.
Referenced by fipa_envelope_Compose__params().
int fipa_envelope_HandleAclRepresentation | ( | struct fipa_acl_envelope_s * | envelope, | |
mxml_node_t * | param_node, | |||
int | cur_param | |||
) |
Definition at line 381 of file fipa_envelope.c.
References fipa_acl_Param_s::acl_representation, mxml_node_s::child, MC_ERR_PARSE, MXML_DESCEND_FIRST, MXML_TEXT, mxmlFindElement(), fipa_acl_envelope_s::params, mxml_text_s::string, mxml_value_u::text, mxml_node_s::type, and mxml_node_s::value.
Referenced by fipa_envelope_HandleParams().
int fipa_envelope_HandleComments | ( | struct fipa_acl_envelope_s * | envelope, | |
mxml_node_t * | param_node, | |||
int | cur_param | |||
) |
Definition at line 357 of file fipa_envelope.c.
References mxml_node_s::child, fipa_acl_Param_s::comments, MC_ERR_PARSE, MXML_DESCEND_FIRST, MXML_TEXT, mxmlFindElement(), fipa_acl_envelope_s::params, mxml_text_s::string, mxml_value_u::text, mxml_node_s::type, and mxml_node_s::value.
Referenced by fipa_envelope_HandleParams().
int fipa_envelope_HandleDate | ( | struct fipa_acl_envelope_s * | envelope, | |
mxml_node_t * | param_node, | |||
int | cur_param | |||
) |
Definition at line 452 of file fipa_envelope.c.
References mxml_node_s::child, fipa_acl_Param_s::date, fipa_datetime_Parse(), MC_ERR_PARSE, fipa_message_string_s::message, MXML_DESCEND_FIRST, MXML_TEXT, mxmlFindElement(), fipa_acl_envelope_s::params, fipa_message_string_s::parse, mxml_text_s::string, mxml_value_u::text, mxml_node_s::type, and mxml_node_s::value.
Referenced by fipa_envelope_HandleParams().
int fipa_envelope_HandleEnvelope | ( | struct fipa_acl_envelope_s * | envelope, | |
mxml_node_t * | node | |||
) |
Definition at line 178 of file fipa_envelope.c.
References fipa_envelope_HandleParams(), MC_ERR_PARSE, MXML_DESCEND_FIRST, and mxmlFindElement().
Referenced by fipa_envelope_Parse().
int fipa_envelope_HandleFrom | ( | struct fipa_acl_envelope_s * | envelope, | |
mxml_node_t * | param_node, | |||
int | cur_param | |||
) |
Definition at line 328 of file fipa_envelope.c.
References fipa_envelope_ParseAgentIdentifier(), fipa_acl_Param_s::from, MC_ERR_PARSE, MXML_DESCEND_FIRST, mxmlFindElement(), and fipa_acl_envelope_s::params.
Referenced by fipa_envelope_HandleParams().
int fipa_envelope_HandleIntendedReceiver | ( | struct fipa_acl_envelope_s * | envelope, | |
mxml_node_t * | param_node, | |||
int | cur_param | |||
) |
Definition at line 482 of file fipa_envelope.c.
References fipa_agent_identifier_set_New(), fipa_agent_identifier_set_s::fipa_agent_identifiers, fipa_envelope_ParseAgentIdentifier(), fipa_acl_Param_s::intended_receiver, MC_ERR_PARSE, MXML_DESCEND_FIRST, MXML_NO_DESCEND, mxmlFindElement(), fipa_agent_identifier_set_s::num, fipa_acl_envelope_s::params, and fipa_agent_identifier_set_s::retain_order.
Referenced by fipa_envelope_HandleParams().
int fipa_envelope_HandleParams | ( | struct fipa_acl_envelope_s * | envelope, | |
mxml_node_t * | node | |||
) |
Definition at line 198 of file fipa_envelope.c.
References buf, fipa_envelope_HandleAclRepresentation(), fipa_envelope_HandleComments(), fipa_envelope_HandleDate(), fipa_envelope_HandleFrom(), fipa_envelope_HandleIntendedReceiver(), fipa_envelope_HandlePayloadEncoding(), fipa_envelope_HandlePayloadLength(), fipa_envelope_HandleReceived(), fipa_envelope_HandleTo(), MC_ERR_PARSE, MXML_DESCEND_FIRST, mxmlFindElement(), fipa_acl_envelope_s::num_params, and fipa_acl_envelope_s::params.
Referenced by fipa_envelope_HandleEnvelope().
int fipa_envelope_HandlePayloadEncoding | ( | struct fipa_acl_envelope_s * | envelope, | |
mxml_node_t * | param_node, | |||
int | cur_param | |||
) |
Definition at line 428 of file fipa_envelope.c.
References mxml_node_s::child, MC_ERR_PARSE, MXML_DESCEND_FIRST, MXML_TEXT, mxmlFindElement(), fipa_acl_envelope_s::params, fipa_acl_Param_s::payload_encoding, mxml_text_s::string, mxml_value_u::text, mxml_node_s::type, and mxml_node_s::value.
Referenced by fipa_envelope_HandleParams().
int fipa_envelope_HandlePayloadLength | ( | struct fipa_acl_envelope_s * | envelope, | |
mxml_node_t * | param_node, | |||
int | cur_param | |||
) |
Definition at line 405 of file fipa_envelope.c.
References mxml_node_s::child, MC_ERR_PARSE, MXML_DESCEND_FIRST, MXML_TEXT, mxmlFindElement(), fipa_acl_envelope_s::params, fipa_acl_Param_s::payload_length, mxml_text_s::string, mxml_value_u::text, mxml_node_s::type, and mxml_node_s::value.
Referenced by fipa_envelope_HandleParams().
int fipa_envelope_HandleReceived | ( | struct fipa_acl_envelope_s * | envelope, | |
mxml_node_t * | param_node, | |||
int | cur_param | |||
) |
Definition at line 560 of file fipa_envelope.c.
References fipa_acl_envelope_Received_New(), fipa_datetime_Parse(), fipa_url_New(), MC_ERR_PARSE, fipa_message_string_s::message, MXML_DESCEND_FIRST, mxmlElementGetAttr(), mxmlFindElement(), node, fipa_acl_envelope_s::params, fipa_message_string_s::parse, fipa_acl_Param_s::received, fipa_acl_envelope_Received_s::received_by, fipa_acl_envelope_Received_s::received_date, fipa_acl_envelope_Received_s::received_from, fipa_acl_envelope_Received_s::received_id, fipa_acl_envelope_Received_s::received_via, and fipa_url_s::str.
Referenced by fipa_envelope_HandleParams().
int fipa_envelope_HandleTo | ( | struct fipa_acl_envelope_s * | envelope, | |
mxml_node_t * | param_node, | |||
int | cur_param | |||
) |
Definition at line 250 of file fipa_envelope.c.
References fipa_acl_Param_New(), fipa_agent_identifier_set_New(), fipa_agent_identifier_set_s::fipa_agent_identifiers, fipa_envelope_ParseAgentIdentifier(), MC_ERR_PARSE, MXML_DESCEND_FIRST, MXML_NO_DESCEND, mxmlFindElement(), fipa_agent_identifier_set_s::num, fipa_acl_envelope_s::params, fipa_agent_identifier_set_s::retain_order, and fipa_acl_Param_s::to.
Referenced by fipa_envelope_HandleParams().
int fipa_envelope_Parse | ( | struct fipa_acl_envelope_s * | envelope, | |
const char * | message | |||
) |
Definition at line 165 of file fipa_envelope.c.
References fipa_envelope_HandleEnvelope(), MXML_NO_CALLBACK, mxmlDelete(), and mxmlLoadString().
Referenced by acc_connection_Thread().
int fipa_envelope_ParseAddresses | ( | struct fipa_agent_identifier_s * | aid, | |
mxml_node_t * | addresses_node | |||
) |
Definition at line 737 of file fipa_envelope.c.
References fipa_agent_identifier_s::addresses, mxml_node_s::child, fipa_url_New(), MC_ERR_PARSE, MXML_DESCEND_FIRST, MXML_NO_DESCEND, MXML_TEXT, mxmlFindElement(), fipa_url_sequence_s::num, fipa_url_s::str, mxml_text_s::string, mxml_value_u::text, mxml_node_s::type, fipa_url_sequence_s::urls, and mxml_node_s::value.
Referenced by fipa_envelope_ParseAgentIdentifier().
int fipa_envelope_ParseAgentIdentifier | ( | struct fipa_agent_identifier_s ** | aid, | |
mxml_node_t * | agent_identifier_node | |||
) |
Definition at line 687 of file fipa_envelope.c.
References mxml_node_s::child, fipa_agent_identifier_New(), fipa_envelope_ParseAddresses(), fipa_envelope_ParseResolvers(), MC_ERR_PARSE, MXML_DESCEND_FIRST, MXML_TEXT, mxmlFindElement(), mxml_text_s::string, mxml_value_u::text, mxml_node_s::type, and mxml_node_s::value.
Referenced by fipa_envelope_HandleFrom(), fipa_envelope_HandleIntendedReceiver(), fipa_envelope_HandleTo(), and fipa_envelope_ParseResolvers().
int fipa_envelope_ParseResolvers | ( | struct fipa_agent_identifier_s * | aid, | |
mxml_node_t * | resolvers_node | |||
) |
Definition at line 804 of file fipa_envelope.c.
References fipa_agent_identifier_set_s::fipa_agent_identifiers, fipa_envelope_ParseAgentIdentifier(), MC_ERR_PARSE, MXML_DESCEND_FIRST, MXML_NO_DESCEND, mxmlFindElement(), fipa_agent_identifier_set_s::num, fipa_agent_identifier_s::resolvers, and fipa_agent_identifier_set_s::retain_order.
Referenced by fipa_envelope_ParseAgentIdentifier().