Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Bad idea to acquire a semaphore that is already hold. Split cleanup code from waiting...
[simgrid.git] / include / gras / transport.h
index 6151874..8ad34fd 100644 (file)
@@ -1,10 +1,9 @@
 
-/* $Id$ */
-
 /* transport - low level communication (send/receive bunches of bytes)      */
 /* module's public interface exported to end user.                          */
 
-/* Copyright (c) 2004 Martin Quinson. All rights reserved.                  */
+/* Copyright (c) 2004, 2005, 2006, 2007, 2009, 2010. The SimGrid Team.
+ * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -42,6 +41,7 @@ XBT_PUBLIC(gras_socket_t) gras_socket_client_from_string(const char *host);
 /** \brief Simply create a server socket (to ear from remote hosts speaking to you) */
 XBT_PUBLIC(gras_socket_t) gras_socket_server(unsigned short port);
 XBT_PUBLIC(void) gras_socket_close(gras_socket_t sd);
+XBT_PUBLIC(void) gras_socket_close_voidp(void *sock);
 
 /** \brief Create a client socket, full interface to all relevant settings */
 XBT_PUBLIC(gras_socket_t) gras_socket_client_ext(const char *host,