From dbb142cc655e7115cff840faae39da9c854932d9 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Tue, 12 Feb 2008 21:28:10 +0000 Subject: implement resizable I/O buffers and tune buffer sizes to normal requests git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@630 ef36b2f9-881f-0410-afb5-c4e39611909c --- common/tio.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common/tio.h') diff --git a/common/tio.h b/common/tio.h index 9f63c1b..d6c8d9c 100644 --- a/common/tio.h +++ b/common/tio.h @@ -48,7 +48,9 @@ typedef struct tio_fileinfo TFILE; /* Open a new TFILE based on the file descriptor. The timeout is set for any operation. The timeout value is copied so may be dereferenced after the call. */ -TFILE *tio_fdopen(int fd,struct timeval *readtimeout,struct timeval *writetimeout) +TFILE *tio_fdopen(int fd,struct timeval *readtimeout,struct timeval *writetimeout, + size_t initreadsize,size_t maxreadsize, + size_t initwritesize,size_t maxwritesize) LIKE_MALLOC MUST_USE; /* Read the specified number of bytes from the stream. */ -- cgit v1.2.3