X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=comstack%2Ftcpip.c;fp=comstack%2Ftcpip.c;h=b1f4f737562fd7b34912662916a7bc6e013bae3c;hp=dac1d6787e9254ba2947642f51d4910360f071d1;hb=4ca818ec201c9dcf5461e419002c95fd2eac620e;hpb=add5a2db6b4360b1b448ad09f991a3977eb1220d diff --git a/comstack/tcpip.c b/comstack/tcpip.c index dac1d67..b1f4f73 100644 --- a/comstack/tcpip.c +++ b/comstack/tcpip.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: tcpip.c,v 1.54 2003-02-20 15:10:24 adam Exp $ + * $Id: tcpip.c,v 1.55 2003-02-21 12:08:57 adam Exp $ */ #include @@ -10,8 +10,8 @@ #include #ifdef WIN32 -#include #else +#include #endif #include @@ -25,15 +25,13 @@ #include #include #include +#include #ifdef WIN32 #else #include #endif -/* Chas added the following, so we get the definition of completeBER */ -#include - static int tcpip_close(COMSTACK h); static int tcpip_put(COMSTACK h, char *buf, int size); static int tcpip_get(COMSTACK h, char **buf, int *bufsize); @@ -184,7 +182,7 @@ COMSTACK tcpip_type(int s, int blocking, int protocol, void *vp) if (protocol == PROTO_WAIS) state->complete = completeWAIS; else - state->complete = completeBER; + state->complete = cs_complete_auto; p->timeout = COMSTACK_DEFAULT_TIMEOUT; TRC(fprintf(stderr, "Created new TCPIP comstack\n"));