X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/13bf534d2abb679d945719b02071e03c38d64b63..a9af1b0795c4a75f8919d7a87491fe7ab041b272:/src/gras/Transport/transport_private.h diff --git a/src/gras/Transport/transport_private.h b/src/gras/Transport/transport_private.h index a2d50dc7a2..9b384ecc29 100644 --- a/src/gras/Transport/transport_private.h +++ b/src/gras/Transport/transport_private.h @@ -42,6 +42,9 @@ typedef struct s_gras_socket { int meas :1; /* true if this is an experiment socket instead of messaging */ int recv_ok :1; /* true if it is valid to recv() on the socket (false if it is a file) */ int valid :1; /* false if a select returned that the peer quitted, forcing us to "close" the socket */ + int moredata :1; /* TCP socket use a buffer and read operation get as much data as possible. + It is possible that several messages are received in one shoot, and select won't catch them afterward again. + This boolean indicates that this is the case, so that we don't call select in that case. */ unsigned long int buf_size; /* what to say to the OS. field here to remember it when accepting */