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
47679ed2
Commit
47679ed2
authored
Jul 28, 2019
by
Joseph Noir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Integrate review feedback
parent
a442a96c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
libcaf_net/caf/net/datagram_socket.hpp
libcaf_net/caf/net/datagram_socket.hpp
+1
-1
libcaf_net/src/datagram_socket.cpp
libcaf_net/src/datagram_socket.cpp
+3
-1
libcaf_net/test/datagram_socket.cpp
libcaf_net/test/datagram_socket.cpp
+1
-5
No files found.
libcaf_net/caf/net/datagram_socket.hpp
View file @
47679ed2
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
namespace
caf
{
namespace
caf
{
namespace
net
{
namespace
net
{
/// A
unconnected
datagram-oriented network communication endpoint.
/// A datagram-oriented network communication endpoint.
struct
datagram_socket
:
abstract_socket
<
datagram_socket
>
{
struct
datagram_socket
:
abstract_socket
<
datagram_socket
>
{
using
super
=
abstract_socket
<
datagram_socket
>
;
using
super
=
abstract_socket
<
datagram_socket
>
;
...
...
libcaf_net/src/datagram_socket.cpp
View file @
47679ed2
...
@@ -39,7 +39,9 @@ error allow_connreset(datagram_socket x, bool new_value) {
...
@@ -39,7 +39,9 @@ error allow_connreset(datagram_socket x, bool new_value) {
#else // CAF_WINDOWS
#else // CAF_WINDOWS
error
allow_connreset
(
datagram_socket
,
bool
)
{
error
allow_connreset
(
datagram_socket
x
,
bool
)
{
if
(
x
==
invalid_socket
)
return
sec
::
socket_invalid
;
// nop; SIO_UDP_CONNRESET only exists on Windows
// nop; SIO_UDP_CONNRESET only exists on Windows
return
none
;
return
none
;
}
}
...
...
libcaf_net/test/datagram_socket.cpp
View file @
47679ed2
...
@@ -27,9 +27,5 @@ using namespace caf::net;
...
@@ -27,9 +27,5 @@ using namespace caf::net;
CAF_TEST
(
invalid_socket
)
{
CAF_TEST
(
invalid_socket
)
{
datagram_socket
x
;
datagram_socket
x
;
#ifdef CAF_WINDOWS
CAF_CHECK_NOT_EQUAL
(
allow_connreset
(
x
,
true
),
none
);
CAF_CHECK_EQUAL
(
allow_connreset
(
x
,
true
),
sec
::
network_syscall_failed
);
#else // CAF_WINDOWS
CAF_CHECK_EQUAL
(
allow_connreset
(
x
,
true
),
none
);
#endif // CAF_WINDOWS
}
}
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