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
e521ee2c
Commit
e521ee2c
authored
Nov 30, 2006
by
Kai Blin
Committed by
Alexandre Julliard
Nov 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Implement SO_EXCLUSIVEADDRUSE for setsockopt.
parent
8de12580
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
socket.c
dlls/ws2_32/socket.c
+9
-0
winsock.h
include/winsock.h
+2
-0
No files found.
dlls/ws2_32/socket.c
View file @
e521ee2c
...
...
@@ -2729,6 +2729,15 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
return
0
;
}
/* SO_EXCLUSIVEADDRUSE stops applications from binding to a port that is
* already used. This never works on Unix systems, so just ignore this
* setting*/
if
(
level
==
WS_SOL_SOCKET
&&
optname
==
WS_SO_EXCLUSIVEADDRUSE
)
{
TRACE
(
"Ignoring SO_EXCLUSIVEADDRUSE
\n
"
);
return
0
;
}
#ifdef HAVE_IPX
if
(
level
==
NSPROTO_IPX
)
{
...
...
include/winsock.h
View file @
e521ee2c
...
...
@@ -663,6 +663,7 @@ typedef struct WS(WSAData)
#define SO_DEBUG 0x0001
#define SO_ACCEPTCONN 0x0002
#define SO_REUSEADDR 0x0004
#define SO_EXCLUSIVEADDRUSE ((u_int)(~SO_REUSEADDR))
#define SO_KEEPALIVE 0x0008
#define SO_DONTROUTE 0x0010
#define SO_BROADCAST 0x0020
...
...
@@ -696,6 +697,7 @@ typedef struct WS(WSAData)
#define WS_SO_DEBUG 0x0001
#define WS_SO_ACCEPTCONN 0x0002
#define WS_SO_REUSEADDR 0x0004
#define WS_SO_EXCLUSIVEADDRUSE ((WS_u_int)(~WS_SO_REUSEADDR))
#define WS_SO_KEEPALIVE 0x0008
#define WS_SO_DONTROUTE 0x0010
#define WS_SO_BROADCAST 0x0020
...
...
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