-/*
- * Copyright (C) 1995-2007, Index Data ApS
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2008 Index Data
* See the file LICENSE for details.
- *
- * $Id: tcpip.c,v 1.40 2008-01-21 13:07:43 adam Exp $
*/
/**
* \file tcpip.c
h->cerrno = CSNODATA;
else
{
+#ifdef WIN32
+ shutdown(h->iofile, SD_RECEIVE);
+#else
shutdown(h->iofile, SHUT_RD);
+#endif
listen(h->iofile, SOMAXCONN);
h->cerrno = CSYSERR;
}