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
a6edca34
Commit
a6edca34
authored
Nov 15, 2018
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Get rid of hostdata_t.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
eb78033a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
11 deletions
+12
-11
net.c
dlls/winhttp/net.c
+1
-1
request.c
dlls/winhttp/request.c
+5
-5
winhttp_private.h
dlls/winhttp/winhttp_private.h
+6
-5
No files found.
dlls/winhttp/net.c
View file @
a6edca34
...
...
@@ -179,7 +179,7 @@ static void set_blocking( netconn_t *conn, BOOL blocking )
ioctlsocket
(
conn
->
socket
,
FIONBIO
,
&
state
);
}
netconn_t
*
netconn_create
(
hostdata_t
*
host
,
const
struct
sockaddr_storage
*
sockaddr
,
int
timeout
)
netconn_t
*
netconn_create
(
struct
hostdata
*
host
,
const
struct
sockaddr_storage
*
sockaddr
,
int
timeout
)
{
netconn_t
*
conn
;
unsigned
int
addr_len
;
...
...
dlls/winhttp/request.c
View file @
a6edca34
...
...
@@ -1487,7 +1487,7 @@ static CRITICAL_SECTION connection_pool_cs = { &connection_pool_debug, -1, 0, 0,
static
struct
list
connection_pool
=
LIST_INIT
(
connection_pool
);
void
release_host
(
hostdata_t
*
host
)
void
release_host
(
struct
hostdata
*
host
)
{
LONG
ref
;
...
...
@@ -1507,7 +1507,7 @@ static DWORD WINAPI connection_collector(void *arg)
{
unsigned
int
remaining_connections
;
netconn_t
*
netconn
,
*
next_netconn
;
hostdata_t
*
host
,
*
next_host
;
struct
hostdata
*
host
,
*
next_host
;
ULONGLONG
now
;
do
...
...
@@ -1519,7 +1519,7 @@ static DWORD WINAPI connection_collector(void *arg)
EnterCriticalSection
(
&
connection_pool_cs
);
LIST_FOR_EACH_ENTRY_SAFE
(
host
,
next_host
,
&
connection_pool
,
hostdata_t
,
entry
)
LIST_FOR_EACH_ENTRY_SAFE
(
host
,
next_host
,
&
connection_pool
,
struct
hostdata
,
entry
)
{
LIST_FOR_EACH_ENTRY_SAFE
(
netconn
,
next_netconn
,
&
host
->
connections
,
netconn_t
,
entry
)
{
...
...
@@ -1617,7 +1617,7 @@ static BOOL ensure_cred_handle( session_t *session )
static
BOOL
open_connection
(
request_t
*
request
)
{
BOOL
is_secure
=
request
->
hdr
.
flags
&
WINHTTP_FLAG_SECURE
;
hostdata_t
*
host
=
NULL
,
*
iter
;
struct
hostdata
*
host
=
NULL
,
*
iter
;
netconn_t
*
netconn
=
NULL
;
connect_t
*
connect
;
WCHAR
*
addressW
=
NULL
;
...
...
@@ -1631,7 +1631,7 @@ static BOOL open_connection( request_t *request )
EnterCriticalSection
(
&
connection_pool_cs
);
LIST_FOR_EACH_ENTRY
(
iter
,
&
connection_pool
,
hostdata_t
,
entry
)
LIST_FOR_EACH_ENTRY
(
iter
,
&
connection_pool
,
struct
hostdata
,
entry
)
{
if
(
iter
->
port
==
port
&&
!
strcmpW
(
connect
->
servername
,
iter
->
hostname
)
&&
!
is_secure
==
!
iter
->
secure
)
{
...
...
dlls/winhttp/winhttp_private.h
View file @
a6edca34
...
...
@@ -65,14 +65,15 @@ struct object_header
struct
list
children
;
};
typedef
struct
{
struct
hostdata
{
struct
list
entry
;
LONG
ref
;
WCHAR
*
hostname
;
INTERNET_PORT
port
;
BOOL
secure
;
struct
list
connections
;
}
hostdata_t
;
};
typedef
struct
{
...
...
@@ -116,7 +117,7 @@ typedef struct
int
socket
;
struct
sockaddr_storage
sockaddr
;
BOOL
secure
;
/* SSL active on connection? */
hostdata_t
*
host
;
struct
hostdata
*
host
;
ULONGLONG
keep_until
;
CtxtHandle
ssl_ctx
;
SecPkgContext_StreamSizes
ssl_sizes
;
...
...
@@ -270,7 +271,7 @@ void send_callback( struct object_header *, DWORD, LPVOID, DWORD ) DECLSPEC_HIDD
void
close_connection
(
request_t
*
)
DECLSPEC_HIDDEN
;
void
netconn_close
(
netconn_t
*
)
DECLSPEC_HIDDEN
;
netconn_t
*
netconn_create
(
hostdata_t
*
,
const
struct
sockaddr_storage
*
,
int
)
DECLSPEC_HIDDEN
;
netconn_t
*
netconn_create
(
struct
hostdata
*
,
const
struct
sockaddr_storage
*
,
int
)
DECLSPEC_HIDDEN
;
void
netconn_unload
(
void
)
DECLSPEC_HIDDEN
;
ULONG
netconn_query_data_available
(
netconn_t
*
)
DECLSPEC_HIDDEN
;
BOOL
netconn_recv
(
netconn_t
*
,
void
*
,
size_t
,
int
,
int
*
)
DECLSPEC_HIDDEN
;
...
...
@@ -289,7 +290,7 @@ void destroy_cookies( session_t * ) DECLSPEC_HIDDEN;
BOOL
set_server_for_hostname
(
connect_t
*
,
LPCWSTR
,
INTERNET_PORT
)
DECLSPEC_HIDDEN
;
void
destroy_authinfo
(
struct
authinfo
*
)
DECLSPEC_HIDDEN
;
void
release_host
(
hostdata_t
*
host
)
DECLSPEC_HIDDEN
;
void
release_host
(
struct
hostdata
*
host
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WinHttpRequest_create
(
void
**
)
DECLSPEC_HIDDEN
;
void
release_typelib
(
void
)
DECLSPEC_HIDDEN
;
...
...
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