Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ccd11eb7
Commit
ccd11eb7
authored
Apr 02, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Abstract different transfer and content encoding reading to layered structures.
parent
0270e69b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
http.c
dlls/wininet/http.c
+0
-0
internet.h
dlls/wininet/internet.h
+17
-4
No files found.
dlls/wininet/http.c
View file @
ccd11eb7
This diff is collapsed.
Click to expand it.
dlls/wininet/internet.h
View file @
ccd11eb7
...
@@ -258,7 +258,19 @@ typedef struct
...
@@ -258,7 +258,19 @@ typedef struct
struct
HttpAuthInfo
;
struct
HttpAuthInfo
;
typedef
struct
gzip_stream_t
gzip_stream_t
;
typedef
struct
data_stream_vtbl_t
data_stream_vtbl_t
;
typedef
struct
{
const
data_stream_vtbl_t
*
vtbl
;
}
data_stream_t
;
typedef
struct
{
data_stream_t
data_stream
;
DWORD
content_length
;
DWORD
content_read
;
}
netconn_stream_t
;
#define READ_BUFFER_SIZE 8192
typedef
struct
typedef
struct
{
{
...
@@ -283,14 +295,15 @@ typedef struct
...
@@ -283,14 +295,15 @@ typedef struct
CRITICAL_SECTION
read_section
;
/* section to protect the following fields */
CRITICAL_SECTION
read_section
;
/* section to protect the following fields */
DWORD
contentLength
;
/* total number of bytes to be read */
DWORD
contentLength
;
/* total number of bytes to be read */
DWORD
contentRead
;
/* bytes of the content read so far */
BOOL
read_chunked
;
/* are we reading in chunked mode? */
BOOL
read_chunked
;
/* are we reading in chunked mode? */
BOOL
read_gzip
;
/* are we reading in gzip mode? */
DWORD
read_pos
;
/* current read position in read_buf */
DWORD
read_pos
;
/* current read position in read_buf */
DWORD
read_size
;
/* valid data size in read_buf */
DWORD
read_size
;
/* valid data size in read_buf */
BYTE
read_buf
[
4096
];
/* buffer for already read but not returned data */
BYTE
read_buf
[
READ_BUFFER_SIZE
];
/* buffer for already read but not returned data */
BOOL
decoding
;
BOOL
decoding
;
gzip_stream_t
*
gzip_stream
;
data_stream_t
*
data_stream
;
netconn_stream_t
netconn_stream
;
}
http_request_t
;
}
http_request_t
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment