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
eb226962
Commit
eb226962
authored
5 years ago
by
Seva
Committed by
Adrien Béraud
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
http: optimize get_url funcs
parent
70c92d6c
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/http.h
+6
-2
6 additions, 2 deletions
include/opendht/http.h
src/http.cpp
+0
-12
0 additions, 12 deletions
src/http.cpp
with
6 additions
and
14 deletions
include/opendht/http.h
+
6
−
2
View file @
eb226962
...
@@ -150,7 +150,9 @@ public:
...
@@ -150,7 +150,9 @@ public:
~
Resolver
();
~
Resolver
();
Url
get_url
()
const
;
inline
const
Url
&
get_url
()
const
{
return
url_
;
};
std
::
string
get_service
()
const
;
std
::
string
get_service
()
const
;
void
add_callback
(
ResolverCb
cb
);
void
add_callback
(
ResolverCb
cb
);
...
@@ -209,7 +211,9 @@ public:
...
@@ -209,7 +211,9 @@ public:
unsigned
int
id
()
const
;
unsigned
int
id
()
const
;
void
set_connection
(
std
::
shared_ptr
<
Connection
>
connection
);
void
set_connection
(
std
::
shared_ptr
<
Connection
>
connection
);
std
::
shared_ptr
<
Connection
>
get_connection
()
const
;
std
::
shared_ptr
<
Connection
>
get_connection
()
const
;
Url
get_url
()
const
;
inline
const
Url
&
get_url
()
const
{
return
resolver_
->
get_url
();
};
void
set_certificate
(
std
::
shared_ptr
<
dht
::
crypto
::
Certificate
>
certificate
);
void
set_certificate
(
std
::
shared_ptr
<
dht
::
crypto
::
Certificate
>
certificate
);
void
set_logger
(
std
::
shared_ptr
<
dht
::
Logger
>
logger
);
void
set_logger
(
std
::
shared_ptr
<
dht
::
Logger
>
logger
);
...
...
This diff is collapsed.
Click to expand it.
src/http.cpp
+
0
−
12
View file @
eb226962
...
@@ -345,12 +345,6 @@ Resolver::~Resolver()
...
@@ -345,12 +345,6 @@ Resolver::~Resolver()
}
}
}
}
Url
Resolver
::
get_url
()
const
{
return
url_
;
}
void
void
Resolver
::
add_callback
(
ResolverCb
cb
)
Resolver
::
add_callback
(
ResolverCb
cb
)
{
{
...
@@ -455,12 +449,6 @@ Request::id() const
...
@@ -455,12 +449,6 @@ Request::id() const
return
id_
;
return
id_
;
}
}
Url
Request
::
get_url
()
const
{
return
resolver_
->
get_url
();
}
void
void
Request
::
set_connection
(
std
::
shared_ptr
<
Connection
>
connection
)
Request
::
set_connection
(
std
::
shared_ptr
<
Connection
>
connection
)
{
{
...
...
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