Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cmu
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李维杰
cmu
Commits
b0a69d11
Commit
b0a69d11
authored
Jun 18, 2020
by
李维杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add request
parent
15b2d635
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
2 deletions
+29
-2
mqtt_request.cc
thirdparty/mqtt/mqtt_request.cc
+29
-0
mqtt_request.h
thirdparty/mqtt/mqtt_request.h
+0
-2
No files found.
thirdparty/mqtt/mqtt_request.cc
View file @
b0a69d11
#include "mqtt_request.h"
#include "json/json.h"
namespace
offcn
{
/*
{
"path": "join",
"rid" : "xxxid",
"capacity" :
{
"pull_type" : "rtmp"
}
}
*/
std
::
string
MqttRequest
::
JoinRequest
(
std
::
string
local_id
,
std
::
string
capacity
)
{
return
""
;
}
/*
{
"path": "update",
"rid" : "xxxid",
"capacity" :
{
"pull_type" : "kcp"
}
}
*/
std
::
string
MqttRequest
::
UpdateRequest
(
std
::
string
local_id
,
std
::
string
capacity
)
{
return
""
;
}
/*
{
"path": "offer/answer",
"rid" : "xxxid",
"tid" : "remoteid",
"candidate" : ""
}
*/
std
::
string
MqttRequest
::
Candidate
(
std
::
string
local_id
,
std
::
string
remote_id
,
std
::
string
type
,
std
::
string
candidate
)
{
return
""
;
...
...
thirdparty/mqtt/mqtt_request.h
View file @
b0a69d11
...
...
@@ -10,6 +10,5 @@ namespace offcn
static
std
::
string
JoinRequest
(
std
::
string
local_id
,
std
::
string
capacity
);
static
std
::
string
UpdateRequest
(
std
::
string
local_id
,
std
::
string
capacity
);
static
std
::
string
Candidate
(
std
::
string
local_id
,
std
::
string
remote_id
,
std
::
string
type
,
std
::
string
candidate
);
};
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment