~ubuntu-branches/ubuntu/raring/simgrid/raring

« back to all changes in this revision

Viewing changes to examples/msg/sendrecv/sendrecv.c

  • Committer: Package Import Robot
  • Author(s): Martin Quinson
  • Date: 2013-01-31 00:24:51 UTC
  • mfrom: (10.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20130131002451-krejhf7w7h24lpsc
Tags: 3.9~rc1-1
* New upstream release: the "Grasgory" release. Major changes:
  - Gras was completely removed from this version.
  - Documentation reorganization to ease browsing it.
  - New default value for the TCP_gamma parameter: 4MiB

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
int sender(int argc, char *argv[]);
27
27
int receiver(int argc, char *argv[]);
28
28
 
29
 
MSG_error_t test_all(const char *platform_file,
 
29
msg_error_t test_all(const char *platform_file,
30
30
                     const char *application_file);
31
31
 
32
32
double task_comm_size_lat = 10e0;
35
35
/** Emitter function  */
36
36
int sender(int argc, char *argv[])
37
37
{
38
 
  m_host_t host = NULL;
 
38
  msg_host_t host = NULL;
39
39
  double time;
40
 
  m_task_t task_la = NULL;
41
 
  m_task_t task_bw = NULL;
 
40
  msg_task_t task_la = NULL;
 
41
  msg_task_t task_bw = NULL;
42
42
  char sprintf_buffer_la[64];
43
43
  char sprintf_buffer_bw[64];
44
44
 
45
45
  XBT_INFO("sender");
46
46
 
47
 
  /*host = xbt_new0(m_host_t,1); */
 
47
  /*host = xbt_new0(msg_host_t,1); */
48
48
 
49
49
  XBT_INFO("host = %s", argv[1]);
50
50
 
82
82
int receiver(int argc, char *argv[])
83
83
{
84
84
  double time, time1, sender_time;
85
 
  m_task_t task_la = NULL;
86
 
  m_task_t task_bw = NULL;
 
85
  msg_task_t task_la = NULL;
 
86
  msg_task_t task_bw = NULL;
87
87
  int a;
88
88
  double communication_time = 0;
89
89
 
130
130
 
131
131
 
132
132
/** Test function */
133
 
MSG_error_t test_all(const char *platform_file,
 
133
msg_error_t test_all(const char *platform_file,
134
134
                     const char *application_file)
135
135
{
136
136
 
137
 
  MSG_error_t res = MSG_OK;
 
137
  msg_error_t res = MSG_OK;
138
138
 
139
139
 
140
140
 
158
158
/** Main function */
159
159
int main(int argc, char *argv[])
160
160
{
161
 
  MSG_error_t res = MSG_OK;
 
161
  msg_error_t res = MSG_OK;
162
162
 
163
163
#ifdef _MSC_VER
164
164
  unsigned int prev_exponent_format =
165
165
      _set_output_format(_TWO_DIGIT_EXPONENT);
166
166
#endif
167
167
 
168
 
  MSG_global_init(&argc, argv);
 
168
  MSG_init(&argc, argv);
169
169
 
170
170
 
171
171
  if (argc != 3) {
190
190
 
191
191
  XBT_INFO("Total simulation time: %le", MSG_get_clock());
192
192
 
193
 
  MSG_clean();
194
 
 
195
193
#ifdef _MSC_VER
196
194
  _set_output_format(prev_exponent_format);
197
195
#endif