Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Indent include and src using this command:
[simgrid.git] / examples / gras / p2p / can / types.h
1 /* Copyright (c) 2006, 2010. 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 #include "gras.h"
8
9 /* Global private data */
10 typedef struct{
11         gras_socket_t sock; /* server socket on which I'm listening */
12         int xId;
13         int yId;
14         char host[1024]; /* my host name */
15         int port; /* port on which I'm listening FIXME */
16
17         int x1; // Xmin
18         int x2; // Xmax
19         int y1; // Ymin
20         int y2; // Ymax
21
22         char north_host[1024];
23         int north_port;
24         char south_host[1024];
25         int south_port;
26         char east_host[1024];
27         int east_port;
28         char west_host[1024];
29         int west_port;
30
31         int version;
32 }node_data_t;