Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dhtnet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
dhtnet
Commits
1addf952
Commit
1addf952
authored
1 year ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
onPeerResponse: move request
Change-Id: I93782be5cd93c824d14e7c9871be47ed6527d836
parent
8d787734
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/connectionmanager.cpp
+3
-3
3 additions, 3 deletions
src/connectionmanager.cpp
with
3 additions
and
3 deletions
src/connectionmanager.cpp
+
3
−
3
View file @
1addf952
...
...
@@ -500,7 +500,7 @@ public:
const
std
::
string
&
name
=
""
);
void
addNewMultiplexedSocket
(
const
std
::
weak_ptr
<
DeviceInfo
>&
dinfo
,
const
DeviceId
&
deviceId
,
const
dht
::
Value
::
Id
&
vid
,
const
std
::
shared_ptr
<
ConnectionInfo
>&
info
);
void
onPeerResponse
(
const
PeerConnectionRequest
&
req
);
void
onPeerResponse
(
PeerConnectionRequest
&
&
req
);
void
onDhtConnected
(
const
dht
::
crypto
::
PublicKey
&
devicePk
);
...
...
@@ -1078,7 +1078,7 @@ ConnectionManager::Impl::sendChannelRequest(const std::weak_ptr<DeviceInfo>& din
}
void
ConnectionManager
::
Impl
::
onPeerResponse
(
const
PeerConnectionRequest
&
req
)
ConnectionManager
::
Impl
::
onPeerResponse
(
PeerConnectionRequest
&
&
req
)
{
auto
device
=
req
.
owner
->
getLongId
();
if
(
auto
info
=
infos_
.
getInfo
(
device
,
req
.
id
))
{
...
...
@@ -1123,7 +1123,7 @@ ConnectionManager::Impl::onDhtConnected(const dht::crypto::PublicKey& devicePk)
shared
->
config_
->
logger
->
debug
(
"[device {}] Received request"
,
req
.
owner
->
getLongId
());
}
if
(
req
.
isAnswer
)
{
shared
->
onPeerResponse
(
req
);
shared
->
onPeerResponse
(
std
::
move
(
req
)
)
;
}
else
{
// Async certificate checking
shared
->
findCertificate
(
...
...
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