Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
implement refcount on sockets since they are somehow shared between sender and receiv...
[simgrid.git] / src / gras / Transport / transport_private.h
index ad0f55d..c74efd5 100644 (file)
@@ -70,6 +70,8 @@ typedef struct s_gras_socket {
   int recvd:1;                  /* true if the recvd_val field contains one byte of the stream (that we peek'ed to check the socket validity) */
   char recvd_val;               /* what we peeked from the socket, if any */
 
+  int refcount;                 /* refcounting on shared sockets */
+
   unsigned long int buf_size;   /* what to say to the OS. 
                                    Field here to remember it when accepting */