Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b1f2b61b
Commit
b1f2b61b
authored
Sep 30, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Return Win32 socket types from get_socket_info.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ac36b8ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
socket.c
dlls/ws2_32/socket.c
+3
-3
sock.c
server/sock.c
+7
-7
No files found.
dlls/ws2_32/socket.c
View file @
b1f2b61b
...
...
@@ -2306,9 +2306,9 @@ static BOOL ws_protocol_info(SOCKET s, int unicode, WSAPROTOCOL_INFOW *buffer, i
status
=
wine_server_call
(
req
);
if
(
!
status
)
{
address_family
=
convert_af_u2w
(
reply
->
family
)
;
socket_type
=
convert_socktype_u2w
(
reply
->
type
)
;
protocol
=
convert_proto_u2w
(
reply
->
protocol
)
;
address_family
=
reply
->
family
;
socket_type
=
reply
->
type
;
protocol
=
reply
->
protocol
;
}
}
SERVER_END_REQ
;
...
...
server/sock.c
View file @
b1f2b61b
...
...
@@ -456,7 +456,7 @@ static void sock_poll_event( struct fd *fd, int event )
else
{
/* normal data flow */
if
(
sock
->
type
==
SOCK_STREAM
&&
(
event
&
POLLIN
)
)
if
(
sock
->
type
==
WS_SOCK_STREAM
&&
(
event
&
POLLIN
)
)
{
char
dummy
;
int
nr
;
...
...
@@ -546,8 +546,8 @@ static int sock_get_poll_events( struct fd *fd )
else
if
(
smask
&
FD_READ
||
(
sock
->
state
&
FD_WINE_LISTENING
&&
mask
&
FD_ACCEPT
))
ev
|=
POLLIN
|
POLLPRI
;
/* We use POLLIN with 0 bytes recv() as FD_CLOSE indication for stream sockets. */
else
if
(
sock
->
type
==
SOCK_STREAM
&&
sock
->
state
&
FD_READ
&&
mask
&
FD_CLOSE
&&
!
(
sock
->
hmask
&
FD_READ
)
)
else
if
(
sock
->
type
==
WS_SOCK_STREAM
&&
(
sock
->
state
&
FD_READ
)
&&
(
mask
&
FD_CLOSE
)
&&
!
(
sock
->
hmask
&
FD_READ
))
ev
|=
POLLIN
;
if
(
async_queued
(
&
sock
->
write_q
))
...
...
@@ -813,9 +813,9 @@ static int init_socket( struct sock *sock, int family, int type, int protocol, u
sock
->
state
=
(
type
!=
SOCK_STREAM
)
?
(
FD_READ
|
FD_WRITE
)
:
0
;
sock
->
flags
=
flags
;
sock
->
proto
=
unix_
protocol
;
sock
->
type
=
unix_
type
;
sock
->
family
=
unix_
family
;
sock
->
proto
=
protocol
;
sock
->
type
=
type
;
sock
->
family
=
family
;
if
(
sock
->
fd
)
{
...
...
@@ -1540,7 +1540,7 @@ DECL_HANDLER(enable_socket_event)
sock
->
hmask
&=
~
req
->
mask
;
sock
->
state
|=
req
->
sstate
;
sock
->
state
&=
~
req
->
cstate
;
if
(
sock
->
type
!=
SOCK_STREAM
)
sock
->
state
&=
~
STREAM_FLAG_MASK
;
if
(
sock
->
type
!=
WS_SOCK_STREAM
)
sock
->
state
&=
~
STREAM_FLAG_MASK
;
sock_reselect
(
sock
);
...
...
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