Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] mc_comm_pattern.c containing all communication pattern functions
[simgrid.git] / src / mc / mc_client.h
1 /* Copyright (c) 2015. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #ifndef MC_CLIENT_H
8 #define MC_CLIENT_H
9
10 #include <xbt/misc.h>
11
12 SG_BEGIN_DECL()
13
14 typedef struct s_mc_client {
15   int active;
16   int fd;
17 } s_mc_client_t, *mc_client_t;
18
19 extern mc_client_t mc_client;
20
21 void MC_client_init(void);
22 void MC_client_hello(void);
23 void MC_client_handle_messages(void);
24 void MC_client_send_message(void* message, size_t size);
25
26 #ifdef HAVE_MC
27 void MC_ignore(void* addr, size_t size);
28 #endif
29
30 SG_END_DECL()
31
32 #endif