A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Detect socket closed by peer in the transport layer, so that such things don't polute...
[simgrid.git]
/
src
/
portable.h
diff --git
a/src/portable.h
b/src/portable.h
index
8db6630
..
2afe77c
100644
(file)
--- a/
src/portable.h
+++ b/
src/portable.h
@@
-34,6
+34,7
@@
# include <netinet/tcp.h> /* TCP_NODELAY */
# include <netdb.h> /* getprotobyname() */
# include <arpa/inet.h> /* inet_ntoa() */
# include <netinet/tcp.h> /* TCP_NODELAY */
# include <netdb.h> /* getprotobyname() */
# include <arpa/inet.h> /* inet_ntoa() */
+# include <sys/types.h> /* sometimes required for fd_set */
# endif
#ifdef HAVE_WINSOCK2_H
# endif
#ifdef HAVE_WINSOCK2_H
@@
-177,4
+178,10
@@
extern int vasnprintf(char **ptr, size_t str_m, const char *fmt, va_list ap);
# include <execinfo.h>
#endif
# include <execinfo.h>
#endif
+/*
+ * Some debugging functions. Can't we find a better place for this??
+ */
+void hexa_print(const char*name, unsigned char *data, int size);
+const char *hexa_str(unsigned char *data, int size);
+
#endif /* GRAS_PORTABLE_H */
#endif /* GRAS_PORTABLE_H */