Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
mc/remote: switch to socket type SOCK_SEQPACKET to detect when the peer disconnected.
[simgrid.git] / src / mc / remote / Client.cpp
index 20b9c2d..93f0bc0 100644 (file)
@@ -61,7 +61,7 @@ Client* Client::initialize()
   socklen_t socklen = sizeof(type);
   if (getsockopt(fd, SOL_SOCKET, SO_TYPE, &type, &socklen) != 0)
     xbt_die("Could not check socket type");
-  if (type != SOCK_DGRAM)
+  if (type != SOCK_SEQPACKET)
     xbt_die("Unexpected socket type %i", type);
   XBT_DEBUG("Model-checked application found expected socket type");