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
f1b3e41e
Commit
f1b3e41e
authored
9 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
securedht: override all versions of Dht::get
parent
e3730765
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/opendht/dht.h
+3
-3
3 additions, 3 deletions
include/opendht/dht.h
include/opendht/securedht.h
+6
-0
6 additions, 0 deletions
include/opendht/securedht.h
with
9 additions
and
3 deletions
include/opendht/dht.h
+
3
−
3
View file @
f1b3e41e
...
@@ -141,10 +141,10 @@ public:
...
@@ -141,10 +141,10 @@ public:
virtual
void
get
(
const
InfoHash
&
key
,
GetCallback
cb
,
DoneCallbackSimple
donecb
=
{},
Value
::
Filter
&&
f
=
{})
{
virtual
void
get
(
const
InfoHash
&
key
,
GetCallback
cb
,
DoneCallbackSimple
donecb
=
{},
Value
::
Filter
&&
f
=
{})
{
get
(
key
,
cb
,
bindDoneCb
(
donecb
),
std
::
forward
<
Value
::
Filter
>
(
f
));
get
(
key
,
cb
,
bindDoneCb
(
donecb
),
std
::
forward
<
Value
::
Filter
>
(
f
));
}
}
void
get
(
const
InfoHash
&
key
,
GetCallbackSimple
cb
,
DoneCallback
donecb
=
{},
Value
::
Filter
&&
f
=
{})
{
virtual
void
get
(
const
InfoHash
&
key
,
GetCallbackSimple
cb
,
DoneCallback
donecb
=
{},
Value
::
Filter
&&
f
=
{})
{
get
(
key
,
bindGetCb
(
cb
),
donecb
,
std
::
forward
<
Value
::
Filter
>
(
f
));
get
(
key
,
bindGetCb
(
cb
),
donecb
,
std
::
forward
<
Value
::
Filter
>
(
f
));
}
}
void
get
(
const
InfoHash
&
key
,
GetCallbackSimple
cb
,
DoneCallbackSimple
donecb
,
Value
::
Filter
&&
f
=
{})
{
virtual
void
get
(
const
InfoHash
&
key
,
GetCallbackSimple
cb
,
DoneCallbackSimple
donecb
,
Value
::
Filter
&&
f
=
{})
{
get
(
key
,
bindGetCb
(
cb
),
bindDoneCb
(
donecb
),
std
::
forward
<
Value
::
Filter
>
(
f
));
get
(
key
,
bindGetCb
(
cb
),
bindDoneCb
(
donecb
),
std
::
forward
<
Value
::
Filter
>
(
f
));
}
}
...
@@ -208,7 +208,7 @@ public:
...
@@ -208,7 +208,7 @@ public:
return
listen
(
key
,
bindGetCb
(
cb
),
std
::
forward
<
Value
::
Filter
>
(
f
));
return
listen
(
key
,
bindGetCb
(
cb
),
std
::
forward
<
Value
::
Filter
>
(
f
));
}
}
bool
cancelListen
(
const
InfoHash
&
,
size_t
token
);
virtual
bool
cancelListen
(
const
InfoHash
&
,
size_t
token
);
/**
/**
* Inform the DHT of lower-layer connectivity changes.
* Inform the DHT of lower-layer connectivity changes.
...
...
This diff is collapsed.
Click to expand it.
include/opendht/securedht.h
+
6
−
0
View file @
f1b3e41e
...
@@ -89,6 +89,12 @@ public:
...
@@ -89,6 +89,12 @@ public:
virtual
void
get
(
const
InfoHash
&
id
,
GetCallback
cb
,
DoneCallbackSimple
donecb
=
{},
Value
::
Filter
&&
f
=
{})
override
{
virtual
void
get
(
const
InfoHash
&
id
,
GetCallback
cb
,
DoneCallbackSimple
donecb
=
{},
Value
::
Filter
&&
f
=
{})
override
{
get
(
id
,
cb
,
bindDoneCb
(
donecb
),
std
::
forward
<
Value
::
Filter
>
(
f
));
get
(
id
,
cb
,
bindDoneCb
(
donecb
),
std
::
forward
<
Value
::
Filter
>
(
f
));
}
}
virtual
void
get
(
const
InfoHash
&
key
,
GetCallbackSimple
cb
,
DoneCallback
donecb
=
{},
Value
::
Filter
&&
f
=
{})
override
{
get
(
key
,
bindGetCb
(
cb
),
donecb
,
std
::
forward
<
Value
::
Filter
>
(
f
));
}
virtual
void
get
(
const
InfoHash
&
key
,
GetCallbackSimple
cb
,
DoneCallbackSimple
donecb
,
Value
::
Filter
&&
f
=
{})
override
{
get
(
key
,
bindGetCb
(
cb
),
bindDoneCb
(
donecb
),
std
::
forward
<
Value
::
Filter
>
(
f
));
}
virtual
size_t
listen
(
const
InfoHash
&
id
,
GetCallback
cb
,
Value
::
Filter
&&
=
{})
override
;
virtual
size_t
listen
(
const
InfoHash
&
id
,
GetCallback
cb
,
Value
::
Filter
&&
=
{})
override
;
...
...
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