Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
actor-incubator
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
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-incubator
Commits
03713e97
Commit
03713e97
authored
Nov 28, 2019
by
Jakob Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include review feedback
parent
e512ec72
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
5 deletions
+3
-5
libcaf_net/caf/net/doorman.hpp
libcaf_net/caf/net/doorman.hpp
+0
-1
libcaf_net/caf/net/socket_manager.hpp
libcaf_net/caf/net/socket_manager.hpp
+1
-2
libcaf_net/src/tcp_accept_socket.cpp
libcaf_net/src/tcp_accept_socket.cpp
+1
-1
libcaf_net/test/doorman.cpp
libcaf_net/test/doorman.cpp
+1
-1
No files found.
libcaf_net/caf/net/doorman.hpp
View file @
03713e97
...
...
@@ -72,7 +72,6 @@ public:
CAF_LOG_ERROR
(
"accept failed:"
<<
parent
.
system
().
render
(
x
.
error
()));
return
false
;
}
// TODO this won't work anymore
auto
mpx
=
parent
.
multiplexer
();
if
(
!
mpx
)
{
CAF_LOG_DEBUG
(
"unable to get multiplexer from parent"
);
...
...
libcaf_net/caf/net/socket_manager.hpp
View file @
03713e97
...
...
@@ -49,8 +49,7 @@ public:
return
handle_
;
}
/// Returns a pointer to the multiplexer running the socket manager or
/// `nullptr` if the manager is no assigned to one.
/// Returns a pointer to the multiplexer running this `socket_manager`.
multiplexer_ptr
multiplexer
()
const
{
return
parent_
.
lock
();
}
...
...
libcaf_net/src/tcp_accept_socket.cpp
View file @
03713e97
...
...
@@ -118,7 +118,7 @@ make_tcp_accept_socket(const uri::authority_type& node, bool reuse_addr) {
if
(
auto
ip
=
get_if
<
ip_address
>
(
&
node
.
host
))
return
make_tcp_accept_socket
(
ip_endpoint
{
*
ip
,
node
.
port
},
reuse_addr
);
auto
host
=
get
<
std
::
string
>
(
node
.
host
);
auto
addrs
=
ip
::
resolve
(
host
);
// TODO: switch to local_addresses()
auto
addrs
=
ip
::
local_addresses
(
host
);
if
(
addrs
.
empty
())
return
make_error
(
sec
::
cannot_open_port
,
"no local interface available"
,
to_string
(
node
));
...
...
libcaf_net/test/doorman.cpp
View file @
03713e97
...
...
@@ -16,7 +16,7 @@
* http://www.boost.org/LICENSE_1_0.txt. *
******************************************************************************/
#define CAF_SUITE doorman
#define CAF_SUITE
net.
doorman
#include "caf/net/doorman.hpp"
...
...
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