Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
2d99c45e
Commit
2d99c45e
authored
Jul 10, 2019
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build on Windows and Linux
parent
3a760f89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
libcaf_net/caf/net/network_socket.hpp
libcaf_net/caf/net/network_socket.hpp
+1
-1
libcaf_net/src/network_socket.cpp
libcaf_net/src/network_socket.cpp
+2
-2
No files found.
libcaf_net/caf/net/network_socket.hpp
View file @
2d99c45e
...
...
@@ -60,7 +60,7 @@ error allow_sigpipe(network_socket x, bool new_value);
error
allow_udp_connreset
(
network_socket
x
,
bool
new_value
);
/// Get the socket buffer size for `x`.
/// @pre `x != invalid_
network_
socket`
/// @pre `x != invalid_socket`
/// @relates network_socket
expected
<
size_t
>
send_buffer_size
(
network_socket
x
);
...
...
libcaf_net/src/network_socket.cpp
View file @
2d99c45e
...
...
@@ -85,7 +85,7 @@ error keepalive(network_socket x, bool new_value) {
}
error
allow_sigpipe
(
network_socket
x
,
bool
)
{
if
(
x
==
invalid_
network_
socket
)
if
(
x
==
invalid_socket
)
return
make_error
(
sec
::
network_syscall_failed
,
"setsockopt"
,
"invalid socket"
);
return
none
;
...
...
@@ -123,7 +123,7 @@ error allow_sigpipe(network_socket x, bool new_value) {
setsockopt
(
x
.
id
,
SOL_SOCKET
,
SO_NOSIGPIPE
,
&
value
,
static_cast
<
unsigned
>
(
sizeof
(
value
))));
# else // CAF_HAS_NO_SIGPIPE_SOCKET_FLAG
if
(
x
==
invalid_
network_
socket
)
if
(
x
==
invalid_socket
)
return
make_error
(
sec
::
network_syscall_failed
,
"setsockopt"
,
"invalid socket"
);
# endif // CAF_HAS_NO_SIGPIPE_SOCKET_FLAG
...
...
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