Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
chainsend: change message sizes to more realistic values, avoid passing too many...
[simgrid.git] / examples / msg / chainsend / messages.h
index 8e89fd6..4421305 100644 (file)
@@ -4,7 +4,9 @@
 #include "msg/msg.h"
 #include "xbt/sysdep.h"
 
-#define MESSAGE_SIZE 1
+#define MESSAGE_BUILD_CHAIN_SIZE 40
+#define MESSAGE_SEND_DATA_HEADER_SIZE 10
+#define MESSAGE_END_DATA_SIZE 20
 
 /* Messages enum */
 typedef enum {
@@ -25,7 +27,7 @@ typedef struct s_message {
 } s_message_t, *message_t;
 
 /* Message methods */
-msg_task_t task_message_new(e_message_type type, const char *issuer_hostname, const char *mailbox);
+msg_task_t task_message_new(e_message_type type, unsigned int len, const char *issuer_hostname, const char *mailbox);
 msg_task_t task_message_chain_new(const char *issuer_hostname, const char *mailbox, const char* prev, const char *next);
 msg_task_t task_message_data_new(const char *issuer_hostname, const char *mailbox, const char *block, unsigned int len);
 msg_task_t task_message_end_data_new(const char *issuer_hostname, const char *mailbox);