sock->valid = 1;
sock->moredata = 0;
+ sock->refcount = 1;
sock->sd = -1;
sock->data = NULL;
/** \brief Close socket */
void gras_socket_close(gras_socket_t sock)
{
+ if (--sock->refcount)
+ return;
+
xbt_dynar_t sockets =
((gras_trp_procdata_t)
gras_libdata_by_id(gras_trp_libdata_id))->sockets;
const char *gras_socket_peer_name(gras_socket_t sock)
{
+ xbt_assert(sock->plugin);
return (*sock->plugin->peer_name)(sock);
}
unsigned long int sent_sofar;
XBT_IN;
-
+ THROW0(unknown_error,0,"measurement sockets were broken in this release of SimGrid and should be ported back in the future."
+ "If you depend on it, sorry, you have to use an older version, or wait for the future version using it...");
if (gras_if_RL())
chunk = xbt_malloc0(msg_size);
unsigned long int got_sofar;
XBT_IN;
+ THROW0(unknown_error,0,"measurement sockets were broken in this release of SimGrid and should be ported back in the future."
+ "If you depend on it, sorry, you have to use an older version, or wait for the future version using it...");
if (gras_if_RL())
chunk = xbt_malloc(msg_size);
gras_socket_t gras_socket_meas_accept(gras_socket_t peer)
{
gras_socket_t res;
+ THROW0(unknown_error,0,"measurement sockets were broken in this release of SimGrid and should be ported back in the future."
+ "If you depend on it, sorry, you have to use an older version, or wait for the future version using it...");
xbt_assert0(peer->meas,
"No need to accept on non-measurement sockets (it's automatic)");