Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
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
jami-daemon
Commits
2b0e7ef7
Commit
2b0e7ef7
authored
4 years ago
by
Mohamed Chibani
Browse files
Options
Downloads
Patches
Plain Diff
sdp: use uint16_t for port numbers
Change-Id: I7aedd16280d55b413768efce127853f28ec79e3c
parent
3b2334fc
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/sip/sdp.h
+14
-16
14 additions, 16 deletions
src/sip/sdp.h
with
14 additions
and
16 deletions
src/sip/sdp.h
+
14
−
16
View file @
2b0e7ef7
...
...
@@ -149,37 +149,35 @@ public:
std
::
string_view
getPublishedIP
()
const
{
return
publishedIpAddr_
;
}
void
setLocalPublishedAudioPort
(
int
port
)
void
setLocalPublishedAudioPort
(
u
int
16_t
port
)
{
localAudioDataPort_
=
port
;
localAudioControlPort_
=
port
+
1
;
setLocalPublishedAudioPorts
(
port
,
port
+
1
);
}
void
setLocalPublishedAudioPorts
(
int
audio_port
,
int
control_port
)
void
setLocalPublishedAudioPorts
(
u
int
16_t
audio_port
,
u
int
16_t
control_port
)
{
localAudioDataPort_
=
audio_port
;
localAudioControlPort_
=
control_port
;
}
void
setLocalPublishedVideoPort
(
int
port
)
void
setLocalPublishedVideoPort
(
u
int
16_t
port
)
{
localVideoDataPort_
=
port
;
localVideoControlPort_
=
port
+
1
;
setLocalPublishedVideoPorts
(
port
,
port
+
1
);
}
void
setLocalPublishedVideoPorts
(
int
video_port
,
int
control_port
)
void
setLocalPublishedVideoPorts
(
u
int
16_t
video_port
,
u
int
16_t
control_port
)
{
localVideoDataPort_
=
video_port
;
localVideoControlPort_
=
control_port
;
}
u
nsigned
in
t
getLocalVideoPort
()
const
{
return
localVideoDataPort_
;
}
u
int16_
t
getLocalVideoPort
()
const
{
return
localVideoDataPort_
;
}
u
nsigned
in
t
getLocalVideoControlPort
()
const
{
return
localVideoControlPort_
;
}
u
int16_
t
getLocalVideoControlPort
()
const
{
return
localVideoControlPort_
;
}
u
nsigned
in
t
getLocalAudioPort
()
const
{
return
localAudioDataPort_
;
}
u
int16_
t
getLocalAudioPort
()
const
{
return
localAudioDataPort_
;
}
u
nsigned
in
t
getLocalAudioControlPort
()
const
{
return
localAudioControlPort_
;
}
u
int16_
t
getLocalAudioControlPort
()
const
{
return
localAudioControlPort_
;
}
std
::
vector
<
MediaDescription
>
getMediaSlots
(
const
pjmedia_sdp_session
*
session
,
bool
remote
)
const
;
...
...
@@ -264,10 +262,10 @@ private:
std
::
string
publishedIpAddr_
;
pj_uint16_t
publishedIpAddrType_
;
int
localAudioDataPort_
{
0
};
int
localAudioControlPort_
{
0
};
int
localVideoDataPort_
{
0
};
int
localVideoControlPort_
{
0
};
u
int
16_t
localAudioDataPort_
{
0
};
u
int
16_t
localAudioControlPort_
{
0
};
u
int
16_t
localVideoDataPort_
{
0
};
u
int
16_t
localVideoControlPort_
{
0
};
SdesNegotiator
sdesNego_
;
...
...
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