Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-stream
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap-stream
Commits
08b5b161
Commit
08b5b161
authored
5 years ago
by
Aleksandr Lysikov
Browse files
Options
Downloads
Patches
Plain Diff
moved service_key from dap_stream_t to dap_stream_session
parent
9729b334
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
session/dap_stream_session.h
+1
-0
1 addition, 0 deletions
session/dap_stream_session.h
stream/dap_stream.c
+1
-1
1 addition, 1 deletion
stream/dap_stream.c
stream/dap_stream.h
+0
-2
0 additions, 2 deletions
stream/dap_stream.h
with
2 additions
and
3 deletions
session/dap_stream_session.h
+
1
−
0
View file @
08b5b161
...
...
@@ -46,6 +46,7 @@ struct dap_stream_session {
uint8_t
enc_type
;
char
*
service_key
;
// auth string
char
active_channels
[
16
];
// channels for open
stream_session_connection_type_t
conn_type
;
...
...
This diff is collapsed.
Click to expand it.
stream/dap_stream.c
+
1
−
1
View file @
08b5b161
...
...
@@ -170,7 +170,7 @@ void stream_headers_read(dap_http_client_t * cl_ht, void * arg)
sid
->
session
=
ss
;
dap_http_header_t
*
header
=
dap_http_header_find
(
cl_ht
->
in_headers
,
"Service-Key"
);
if
(
header
)
s
id
->
service_key
=
strdup
(
header
->
value
);
s
s
->
service_key
=
strdup
(
header
->
value
);
size_t
count_channels
=
strlen
(
ss
->
active_channels
);
for
(
size_t
i
=
0
;
i
<
count_channels
;
i
++
)
{
dap_stream_ch_new
(
sid
,
ss
->
active_channels
[
i
]);
...
...
This diff is collapsed.
Click to expand it.
stream/dap_stream.h
+
0
−
2
View file @
08b5b161
...
...
@@ -83,8 +83,6 @@ typedef struct dap_stream {
dap_stream_ch_t
*
channel
[
255
];
// TODO reduce channels to 16 to economy memory
size_t
channel_count
;
char
*
service_key
;
size_t
frame_sent
;
// Frame counter
size_t
seq_id
;
...
...
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