freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Frediano Ziglio <freddyz77 AT tin.it>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: RE: [freetds] net.c and related
- Date: Tue, 09 Dec 2003 21:32:41 -0000
Il mar, 2003-12-09 alle 22:10, Lowden, James K ha scritto:
> > From: Frediano Ziglio [mailto:freddyz77 AT tin.it]
> > Sent: December 9, 2003 4:05 PM
> >
> > Some time ago I proposed to add a net.c file to separate low-level
> > network handling. This to isolate relate low-level stuff from
> > read.c/write.c in a single file and to support in easier way
> > named-pipe.
>
> This sounds like a good idea for 0.63. Could we see net.h, to better
> understand the interface?
>
Something like
typedef struct tds_network *TDS_NETWORK;
/** allocate network,resolve name and connect */
TDS_NETWORK* tds_net_open(const char* server, int timeout);
int tds_net_read(TDS_NETWORK* net, void *buf, size_t buflen, int
timeout);
int tds_net_write(TDS_NETWORK* net, const void *buf, size_t buflen, int
timeout);
TDS_INT tds_net_close(TDS_NETWORK* net);
freddy77
-
[freetds] net.c and related,
Frediano Ziglio, 12/09/2003
- <Possible follow-up(s)>
-
RE: [freetds] net.c and related,
Lowden, James K, 12/09/2003
- RE: [freetds] net.c and related, Frediano Ziglio, 12/09/2003
Archive powered by MHonArc 2.6.24.