X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3489f102970893cd4a0462a176ff855c1a09f85c..5c145db0b251fcbd6c859b25262651aaa5230fa9:/src/gras/Transport/transport.c diff --git a/src/gras/Transport/transport.c b/src/gras/Transport/transport.c index a4ca06928e..476780fefc 100644 --- a/src/gras/Transport/transport.c +++ b/src/gras/Transport/transport.c @@ -8,7 +8,7 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "xbt/ex.h" -#include "xbt/host.h" +#include "xbt/peer.h" #include "portable.h" #include "gras/Transport/transport_private.h" @@ -173,7 +173,7 @@ void gras_trp_socket_new(int incoming, *dst = sock; xbt_dynar_push(((gras_trp_procdata_t) - gras_libdata_by_id(gras_trp_libdata_id))->sockets,dst); + gras_libdata_by_id(gras_trp_libdata_id))->sockets,dst); XBT_OUT; } @@ -330,9 +330,9 @@ gras_socket_client(const char *host, /** @brief Opens a client socket to a remote host specified as '\a host:\a port' */ gras_socket_t gras_socket_client_from_string(const char *host) { - xbt_host_t h = xbt_host_from_string(host); - gras_socket_t res = gras_socket_client_ext(h->name,h->port,0,0); - xbt_host_free(h); + xbt_peer_t p = xbt_peer_from_string(host); + gras_socket_t res = gras_socket_client_ext(p->name,p->port,0,0); + xbt_peer_free(p); return res; }