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
f5023dda
Commit
f5023dda
authored
Aug 31, 2013
by
Bruno Jesus
Committed by
Alexandre Julliard
Sep 02, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Store the protocol while creating the socket.
parent
3c759894
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
sock.c
server/sock.c
+3
-0
No files found.
server/sock.c
View file @
f5023dda
...
@@ -96,6 +96,7 @@ struct sock
...
@@ -96,6 +96,7 @@ struct sock
unsigned
int
pmask
;
/* pending events */
unsigned
int
pmask
;
/* pending events */
unsigned
int
flags
;
/* socket flags */
unsigned
int
flags
;
/* socket flags */
int
polling
;
/* is socket being polled? */
int
polling
;
/* is socket being polled? */
unsigned
short
proto
;
/* socket protocol */
unsigned
short
type
;
/* socket type */
unsigned
short
type
;
/* socket type */
unsigned
short
family
;
/* socket family */
unsigned
short
family
;
/* socket family */
struct
event
*
event
;
/* event object */
struct
event
*
event
;
/* event object */
...
@@ -643,6 +644,7 @@ static struct object *create_socket( int family, int type, int protocol, unsigne
...
@@ -643,6 +644,7 @@ static struct object *create_socket( int family, int type, int protocol, unsigne
init_sock
(
sock
);
init_sock
(
sock
);
sock
->
state
=
(
type
!=
SOCK_STREAM
)
?
(
FD_READ
|
FD_WRITE
)
:
0
;
sock
->
state
=
(
type
!=
SOCK_STREAM
)
?
(
FD_READ
|
FD_WRITE
)
:
0
;
sock
->
flags
=
flags
;
sock
->
flags
=
flags
;
sock
->
proto
=
protocol
;
sock
->
type
=
type
;
sock
->
type
=
type
;
sock
->
family
=
family
;
sock
->
family
=
family
;
...
@@ -715,6 +717,7 @@ static struct sock *accept_socket( obj_handle_t handle )
...
@@ -715,6 +717,7 @@ static struct sock *accept_socket( obj_handle_t handle )
if
(
sock
->
state
&
FD_WINE_NONBLOCKING
)
if
(
sock
->
state
&
FD_WINE_NONBLOCKING
)
acceptsock
->
state
|=
FD_WINE_NONBLOCKING
;
acceptsock
->
state
|=
FD_WINE_NONBLOCKING
;
acceptsock
->
mask
=
sock
->
mask
;
acceptsock
->
mask
=
sock
->
mask
;
acceptsock
->
proto
=
sock
->
proto
;
acceptsock
->
type
=
sock
->
type
;
acceptsock
->
type
=
sock
->
type
;
acceptsock
->
family
=
sock
->
family
;
acceptsock
->
family
=
sock
->
family
;
acceptsock
->
window
=
sock
->
window
;
acceptsock
->
window
=
sock
->
window
;
...
...
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