#include"transform.h"
/**
* Put a Message object input to the Send Buffer of the CI. If the
* buffer is full, then return false, else return true. Once the message
* is in the buffer, it will be sent by the CI object automatically.
* @param ci The actor of the method
* @param msg The Message object waiting to be sent.
in*/
//#ifndef MES_H
//#define MES_H
void putMessage(CI* ci, Message* msg,char *ip,int port);
void putMessageRec(CI* ci, Message* msg,char *ip,int port);
/**
* Get a Message object from the Receive Buffer of the CI. If the
* buffer is empty, then return null, else return the Message object.
* @param ci The actor of the method
* @return The received Message object
*/
Message* getMessage(CI* ci);
/**
* Create a Message object.
* @param type The type of this message
* @param serial Serial number of this message
* @param src The name of the source unit of the message
* @param des The name of the destination unit of the message
* @param priority The priority of this message
* @param length The byte-size of content
* @param content The content of the message
*/
Message* createMessage(int type, int serial, char* src, char *srcIp,int srcPort,char* des, int priority, int length, void* content);
/**
* Destroy a Message object.
* @param msg The Message object being destroyed
*
*/
void destroyMessage(Message* msg);
//1#endif