X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ftcpip.c;h=f417c240053c901f0f3cee269da0cce98f8e4384;hp=689b0d561add3a302696e790ae1dde20db7dc800;hb=3b96525a40981e162b959f3e842e0ff20e314320;hpb=7d8ce865edf7af1329b506590717fc846c9becb6 diff --git a/src/tcpip.c b/src/tcpip.c index 689b0d5..f417c24 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -2,7 +2,11 @@ * Copyright (c) 1995-2004, Index Data * See the file LICENSE for details. * - * $Id: tcpip.c,v 1.9 2004-05-10 11:40:51 adam Exp $ + * $Id: tcpip.c,v 1.12 2004-11-18 15:18:14 heikki Exp $ + */ +/** + * \file tcpip.c + * \brief Implements TCP/IP + SSL COMSTACK. */ #include @@ -24,7 +28,6 @@ #include #include -#include #include #ifdef WIN32 @@ -776,7 +779,7 @@ int tcpip_get(COMSTACK h, char **buf, int *bufsize) #endif } else if (!res) - return 0; + return hasread; hasread += res; } TRC (fprintf (stderr, " Out of read loop with hasread=%d, berlen=%d\n",