X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ftcpip.c;h=b992319ca2c12d4006206c6a260717ff8369cd79;hp=8115be776df2d69456227a7b11ff7dec55bae8b9;hb=1f41a1d415d2ab138050a96020ed39caa0c4e323;hpb=01808bebfc2fbd2bd422a01cf14a148714c77e75 diff --git a/src/tcpip.c b/src/tcpip.c index 8115be7..b992319 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -1,8 +1,6 @@ -/* - * 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 @@ -721,7 +719,11 @@ int tcpip_listen(COMSTACK h, char *raddr, int *addrlen, 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; }