From a4072c19b1217e35871ef2422a65f53939bd13b3 Mon Sep 17 00:00:00 2001 From: Oxy Date: Thu, 17 Aug 2006 05:18:28 +0000 Subject: [PATCH] largefile patch added git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@80 119443c7-1b9e-41f8-b6fc-b9c35fce742c --- upnp/src/inc/httpreadwrite.h | 1 + upnp/src/inc/webserver.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/upnp/src/inc/httpreadwrite.h b/upnp/src/inc/httpreadwrite.h index ee8b79c..1d47658 100644 --- a/upnp/src/inc/httpreadwrite.h +++ b/upnp/src/inc/httpreadwrite.h @@ -475,6 +475,7 @@ int http_SendStatusResponse( IN SOCKINFO *info, IN int http_status_code, * memory ptr * 'c': (no args) appends CRLF "\r\n" * 'd': arg = int number // appends decimal number +* 'h': arg = off_t number // appends off_t number * 't': arg = time_t * gmt_time // appends time in RFC 1123 fmt * 'D': (no args) appends HTTP DATE: header * 'S': (no args) appends HTTP SERVER: header diff --git a/upnp/src/inc/webserver.h b/upnp/src/inc/webserver.h index 0f9bc55..774c036 100644 --- a/upnp/src/inc/webserver.h +++ b/upnp/src/inc/webserver.h @@ -48,8 +48,8 @@ struct SendInstruction int IsRangeActive; int IsTrailers; char RangeHeader[200]; - long RangeOffset; - long ReadSendSize; // Read from local source and send on the network. + off_t RangeOffset; + off_t ReadSendSize; // Read from local source and send on the network. long RecvWriteSize; // Recv from the network and write into local file. //Later few more member could be added depending on the requirement.