Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
opendht
Commits
efad2ada
Commit
efad2ada
authored
2 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
dhtrunner: make getPublicAddress const
parent
d825f4e5
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/opendht/dhtrunner.h
+2
-2
2 additions, 2 deletions
include/opendht/dhtrunner.h
src/dhtrunner.cpp
+2
-2
2 additions, 2 deletions
src/dhtrunner.cpp
with
4 additions
and
4 deletions
include/opendht/dhtrunner.h
+
2
−
2
View file @
efad2ada
...
...
@@ -372,8 +372,8 @@ public:
std
::
string
getRoutingTablesLog
(
sa_family_t
af
)
const
;
std
::
string
getSearchesLog
(
sa_family_t
af
=
AF_UNSPEC
)
const
;
std
::
string
getSearchLog
(
const
InfoHash
&
,
sa_family_t
af
=
AF_UNSPEC
)
const
;
std
::
vector
<
SockAddr
>
getPublicAddress
(
sa_family_t
af
=
AF_UNSPEC
);
std
::
vector
<
std
::
string
>
getPublicAddressStr
(
sa_family_t
af
=
AF_UNSPEC
);
std
::
vector
<
SockAddr
>
getPublicAddress
(
sa_family_t
af
=
AF_UNSPEC
)
const
;
std
::
vector
<
std
::
string
>
getPublicAddressStr
(
sa_family_t
af
=
AF_UNSPEC
)
const
;
void
getPublicAddress
(
std
::
function
<
void
(
std
::
vector
<
SockAddr
>&&
)
>
,
sa_family_t
af
=
AF_UNSPEC
);
// securedht methods
...
...
This diff is collapsed.
Click to expand it.
src/dhtrunner.cpp
+
2
−
2
View file @
efad2ada
...
...
@@ -583,7 +583,7 @@ DhtRunner::getSearchLog(const InfoHash& f, sa_family_t af) const
return
dht_
->
getSearchLog
(
f
,
af
);
}
std
::
vector
<
SockAddr
>
DhtRunner
::
getPublicAddress
(
sa_family_t
af
)
DhtRunner
::
getPublicAddress
(
sa_family_t
af
)
const
{
std
::
lock_guard
<
std
::
mutex
>
lck
(
dht_mtx
);
if
(
dht_
)
...
...
@@ -591,7 +591,7 @@ DhtRunner::getPublicAddress(sa_family_t af)
return
{};
}
std
::
vector
<
std
::
string
>
DhtRunner
::
getPublicAddressStr
(
sa_family_t
af
)
DhtRunner
::
getPublicAddressStr
(
sa_family_t
af
)
const
{
auto
addrs
=
getPublicAddress
(
af
);
std
::
vector
<
std
::
string
>
ret
(
addrs
.
size
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment