From bf665822fc371159c9fc6630ab805638c58ab299 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Wed, 22 Sep 2010 10:53:56 -0400 Subject: snapshot of project "lynx", label v2-8-8dev_5b --- WWW/Library/Implementation/www_tcp.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'WWW/Library/Implementation/www_tcp.h') diff --git a/WWW/Library/Implementation/www_tcp.h b/WWW/Library/Implementation/www_tcp.h index de91b9e0..705c41ba 100644 --- a/WWW/Library/Implementation/www_tcp.h +++ b/WWW/Library/Implementation/www_tcp.h @@ -1,5 +1,5 @@ /* System dependencies in the W3 library - * $LynxId: www_tcp.h,v 1.42 2010/09/19 18:30:56 tom Exp $ + * $LynxId: www_tcp.h,v 1.43 2010/09/22 00:35:17 tom Exp $ * SYSTEM DEPENDENCIES @@ -40,9 +40,14 @@ Default values */ /* Default values of those: */ -#define NETCLOSE close /* Routine to close a TCP-IP socket */ -#define NETREAD HTDoRead /* Routine to read from a TCP-IP socket */ -#define NETWRITE write /* Routine to write to a TCP-IP socket */ + /* Routine to close a TCP-IP socket */ +#define NETCLOSE close + /* Routine to read from a TCP-IP socket */ +#define NETREAD(s,p,n) \ + HTDoRead(s, p, (unsigned)(n)) + /* Routine to write to a TCP-IP socket */ +#define NETWRITE(s,p,n) \ + write(s, p, (size_t)(n)) #define SOCKET_READ read /* normal socket read routine */ #define IOCTL ioctl /* normal ioctl routine for sockets */ #define SOCKET_ERRNO errno /* normal socket errno */ -- cgit 1.4.1-2-gfad0