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
4829989c
Commit
4829989c
authored
Aug 02, 2015
by
Charles Davis
Committed by
Alexandre Julliard
Aug 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Implement setting the keep-alive idle timeout and interval on Mac OS.
parent
9ac7bca2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
socket.c
dlls/ws2_32/socket.c
+16
-2
No files found.
dlls/ws2_32/socket.c
View file @
4829989c
...
...
@@ -172,6 +172,11 @@
#define INADDR_NONE ~0UL
#endif
#if !defined(TCP_KEEPIDLE) && defined(TCP_KEEPALIVE)
/* TCP_KEEPALIVE is the Mac OS name for TCP_KEEPIDLE */
#define TCP_KEEPIDLE TCP_KEEPALIVE
#endif
WINE_DEFAULT_DEBUG_CHANNEL
(
winsock
);
WINE_DECLARE_DEBUG_CHANNEL
(
winediag
);
...
...
@@ -4459,14 +4464,23 @@ INT WINAPI WSAIoctl(SOCKET s, DWORD code, LPVOID in_buff, DWORD in_size, LPVOID
fd
=
get_sock_fd
(
s
,
0
,
NULL
);
if
(
setsockopt
(
fd
,
SOL_SOCKET
,
SO_KEEPALIVE
,
(
void
*
)
&
keepalive
,
sizeof
(
int
))
==
-
1
)
status
=
WSAEINVAL
;
#if defined(TCP_KEEPIDLE)
&&
defined(TCP_KEEPINTVL)
#if defined(TCP_KEEPIDLE)
||
defined(TCP_KEEPINTVL)
/* these values need to be set only if SO_KEEPALIVE is enabled */
else
if
(
keepalive
)
{
#ifndef TCP_KEEPIDLE
FIXME
(
"ignoring keepalive timeout
\n
"
);
#else
if
(
setsockopt
(
fd
,
IPPROTO_TCP
,
TCP_KEEPIDLE
,
(
void
*
)
&
keepidle
,
sizeof
(
int
))
==
-
1
)
status
=
WSAEINVAL
;
else
if
(
setsockopt
(
fd
,
IPPROTO_TCP
,
TCP_KEEPINTVL
,
(
void
*
)
&
keepintvl
,
sizeof
(
int
))
==
-
1
)
else
#endif
#ifdef TCP_KEEPINTVL
if
(
setsockopt
(
fd
,
IPPROTO_TCP
,
TCP_KEEPINTVL
,
(
void
*
)
&
keepintvl
,
sizeof
(
int
))
==
-
1
)
status
=
WSAEINVAL
;
#else
FIXME
(
"ignoring keepalive interval
\n
"
);
#endif
}
#else
else
...
...
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