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
55abf077
Commit
55abf077
authored
1 year ago
by
Sébastien Blin
Committed by
Adrien Béraud
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
upnp: fix constructor
Change-Id: I6c8082c7452c371d3c1afc03846452cf0d547e20
parent
464bdff6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/upnp/upnp_context.h
+1
-1
1 addition, 1 deletion
include/upnp/upnp_context.h
src/upnp/upnp_context.cpp
+1
-1
1 addition, 1 deletion
src/upnp/upnp_context.cpp
with
2 additions
and
2 deletions
include/upnp/upnp_context.h
+
1
−
1
View file @
55abf077
...
...
@@ -105,7 +105,7 @@ private:
};
public
:
UPnPContext
(
std
::
shared_ptr
<
asio
::
io_context
>
ctx
,
std
::
shared_ptr
<
dht
::
log
::
Logger
>
logger
);
UPnPContext
(
const
std
::
shared_ptr
<
asio
::
io_context
>
&
ctx
,
const
std
::
shared_ptr
<
dht
::
log
::
Logger
>
&
logger
);
~
UPnPContext
();
// Retrieve the UPnPContext singleton.
...
...
This diff is collapsed.
Click to expand it.
src/upnp/upnp_context.cpp
+
1
−
1
View file @
55abf077
...
...
@@ -36,7 +36,7 @@ constexpr static uint16_t UPNP_TCP_PORT_MAX {UPNP_TCP_PORT_MIN + 5000};
constexpr
static
uint16_t
UPNP_UDP_PORT_MIN
{
20000
};
constexpr
static
uint16_t
UPNP_UDP_PORT_MAX
{
UPNP_UDP_PORT_MIN
+
5000
};
UPnPContext
::
UPnPContext
(
std
::
shared_ptr
<
asio
::
io_context
>
ctx
,
std
::
shared_ptr
<
dht
::
log
::
Logger
>
logger
)
UPnPContext
::
UPnPContext
(
const
std
::
shared_ptr
<
asio
::
io_context
>
&
ioContext
,
const
std
::
shared_ptr
<
dht
::
log
::
Logger
>
&
logger
)
:
mappingListUpdateTimer_
(
*
ioContext
)
{
// JAMI_DBG("Creating UPnPContext instance [%p]", this);
...
...
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