Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
e00cedb73cb22cf0d8b3fd2e40d499053b42384c
[simgrid.git] / include / xbt / peer.h
1 /* peer.h - peer (remote processes) management functions                    */
2
3 /* Copyright (c) 2006 Arnaud Legrand.                                       */
4 /* Copyright (c) 2006 Martin Quinson.                                       */
5 /* All rights reserved.                                                     */
6
7 /* This program is free software; you can redistribute it and/or modify it
8  * under the terms of the license (GNU LGPL) which comes with this package. */
9
10 #ifndef XBT_PEER_H
11 #define XBT_PEER_H
12
13 #include "xbt/misc.h"
14
15 SG_BEGIN_DECL()
16
17      typedef struct {
18        char *name;
19        int port;
20      } s_xbt_peer_t, *xbt_peer_t;
21
22 XBT_PUBLIC(xbt_peer_t) xbt_peer_new(const char *name, int port);
23 XBT_PUBLIC(xbt_peer_t) xbt_peer_from_string(const char *peerport);
24 XBT_PUBLIC(xbt_peer_t) xbt_peer_copy(xbt_peer_t h);
25 XBT_PUBLIC(void) xbt_peer_free(xbt_peer_t peer);
26 XBT_PUBLIC(void) xbt_peer_free_voidp(void *d);
27
28 SG_END_DECL()
29 #endif /* XBT_PEER_H */