Public Types | |
enum | MC_FipaPerformative_e |
Enum for describing the type of an ACL message. More... | |
Public Member Functions | |
MCAclMessage () | |
Default constructor. | |
void | New () |
Creates a new, blank ACL message. | |
MCAclMessage | Reply (MCAclMessage acl_message) |
Creates an ACL message that is a response to the argument. | |
int | SetPerformative (MC_FipaPerformative_e performative) |
Sets the performative field of the message. | |
int | SetSender (String name, String address) |
Sets the sender field of the message. | |
int | AddReceiver (String name, String address) |
Adds a receiver to the list of receivers. | |
int | AddReplyTo (String name, String address) |
Adds a "reply-to" field to the message. | |
int | SetContent (String content) |
Sets the content field of the message. | |
int | Destroy () |
Destroys a message. | |
Properties | |
internal IntPtr | AclMsg [get, set] |
Private Member Functions | |
internal | MCAclMessage (IntPtr msg) |
Private Attributes | |
IntPtr | aclmsg_p |
This class contains a pointer to an ACL message in the Mobile-C library. Functions are provided to send the message, set its various fields, and destory the message.
Definition at line 72 of file MCAclMessage.cs.
Enum for describing the type of an ACL message.
Definition at line 79 of file MCAclMessage.cs.
LibMC::MCAclMessage::MCAclMessage | ( | ) | [inline] |
Default constructor.
Creates an empty ACL message object.
Definition at line 114 of file MCAclMessage.cs.
References aclmsg_p.
Referenced by Reply().
internal LibMC::MCAclMessage::MCAclMessage | ( | IntPtr | msg | ) | [inline, private] |
void LibMC::MCAclMessage::New | ( | ) | [inline] |
Creates a new, blank ACL message.
Creates a new ACL message. The message is blank but valid.
Definition at line 153 of file MCAclMessage.cs.
References AclMsg.
MCAclMessage LibMC::MCAclMessage::Reply | ( | MCAclMessage | acl_message | ) | [inline] |
Creates an ACL message that is a response to the argument.
Creates an ACL message to respond to the argument.
acl_message | The message from which to create the reply. |
Definition at line 167 of file MCAclMessage.cs.
References AclMsg, and MCAclMessage().
int LibMC::MCAclMessage::SetPerformative | ( | MC_FipaPerformative_e | performative | ) | [inline] |
Sets the performative field of the message.
Sets the performative field of the message.
performative | The fipa_performative_e enum describing the message. |
Definition at line 186 of file MCAclMessage.cs.
References AclMsg.
int LibMC::MCAclMessage::SetSender | ( | String | name, | |
String | address | |||
) | [inline] |
Sets the sender field of the message.
Sets the performative field of the message.
name | The name of the sending entity. | |
address | The address of the sending entity. |
Definition at line 202 of file MCAclMessage.cs.
References AclMsg.
int LibMC::MCAclMessage::AddReceiver | ( | String | name, | |
String | address | |||
) | [inline] |
Adds a receiver to the list of receivers.
Adds a receiver to the list of receivers for the message.
name | The name of the receiver. | |
address | The address of the receiver. |
Definition at line 218 of file MCAclMessage.cs.
References AclMsg.
int LibMC::MCAclMessage::AddReplyTo | ( | String | name, | |
String | address | |||
) | [inline] |
Adds a "reply-to" field to the message.
Adds a "reply-to" field to the message. The reply-to field overrides the sender field when creating a reply.
name | The name of the receiver. | |
address | The address of the receiver. |
Definition at line 235 of file MCAclMessage.cs.
References AclMsg.
int LibMC::MCAclMessage::SetContent | ( | String | content | ) | [inline] |
Sets the content field of the message.
Sets the content field of the message.
content | The string to copy to the content field. |
Definition at line 250 of file MCAclMessage.cs.
References AclMsg.
int LibMC::MCAclMessage::Destroy | ( | ) | [inline] |
Destroys a message.
This function destroys a message in the Mobile-C library. It releases the underlying memory and must be called when the message is no longer needed.
Definition at line 269 of file MCAclMessage.cs.
IntPtr LibMC::MCAclMessage::aclmsg_p [private] |
internal IntPtr LibMC::MCAclMessage::AclMsg [get, set, private] |
Definition at line 129 of file MCAclMessage.cs.
Referenced by LibMC::MCAgent::AclPost(), LibMC::MCAgency::AclSend(), AddReceiver(), AddReplyTo(), Destroy(), MCAclMessage(), New(), Reply(), SetContent(), SetPerformative(), and SetSender().