Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-client
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-client
Commits
c795063f
Commit
c795063f
authored
5 years ago
by
dmitriy.gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[*] Reconnect option
parent
1a426051
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
dap_client.c
+1
-1
1 addition, 1 deletion
dap_client.c
dap_client_pvt.c
+2
-1
2 additions, 1 deletion
dap_client_pvt.c
dap_client_pvt.h
+1
-0
1 addition, 0 deletions
dap_client_pvt.h
with
4 additions
and
2 deletions
dap_client.c
+
1
−
1
View file @
c795063f
...
@@ -294,7 +294,7 @@ int dap_client_disconnect(dap_client_t * a_client)
...
@@ -294,7 +294,7 @@ int dap_client_disconnect(dap_client_t * a_client)
dap_client_pvt_t
*
l_client_internal
=
(
a_client
)
?
DAP_CLIENT_PVT
(
a_client
)
:
NULL
;
dap_client_pvt_t
*
l_client_internal
=
(
a_client
)
?
DAP_CLIENT_PVT
(
a_client
)
:
NULL
;
if
(
l_client_internal
&&
l_client_internal
->
stream_socket
){
if
(
l_client_internal
&&
l_client_internal
->
stream_socket
){
if
(
l_client_internal
->
stream_es
)
{
if
(
l_client_internal
->
stream_es
)
{
dap_events_socket_delete
(
l_client_internal
->
stream_es
,
fals
e
);
dap_events_socket_delete
(
l_client_internal
->
stream_es
,
tru
e
);
l_client_internal
->
stream_es
=
NULL
;
l_client_internal
->
stream_es
=
NULL
;
}
}
else
if
(
l_client_internal
->
stream_socket
){
else
if
(
l_client_internal
->
stream_socket
){
...
...
This diff is collapsed.
Click to expand it.
dap_client_pvt.c
+
2
−
1
View file @
c795063f
...
@@ -855,7 +855,8 @@ void m_es_stream_delete(dap_events_socket_t * a_es, void * arg)
...
@@ -855,7 +855,8 @@ void m_es_stream_delete(dap_events_socket_t * a_es, void * arg)
l_client_pvt
->
stream_es
=
NULL
;
l_client_pvt
->
stream_es
=
NULL
;
dap_stream_session_close
(
l_client_pvt
->
stream_session
->
id
);
dap_stream_session_close
(
l_client_pvt
->
stream_session
->
id
);
l_client_pvt
->
stream_session
=
NULL
;
l_client_pvt
->
stream_session
=
NULL
;
dap_client_go_stage
(
l_client_pvt
->
client
,
STAGE_STREAM_STREAMING
,
m_stage_stream_streaming
);
if
(
l_client_pvt
->
is_reconnect
)
dap_client_go_stage
(
l_client_pvt
->
client
,
STAGE_STREAM_STREAMING
,
m_stage_stream_streaming
);
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
dap_client_pvt.h
+
1
−
0
View file @
c795063f
...
@@ -72,6 +72,7 @@ typedef struct dap_client_internal
...
@@ -72,6 +72,7 @@ typedef struct dap_client_internal
dap_client_callback_t
stage_status_error_callback
;
dap_client_callback_t
stage_status_error_callback
;
bool
is_encrypted
;
bool
is_encrypted
;
bool
is_reconnect
;
bool
is_close_session
;
// the last request in session, in the header will be added "SessionCloseAfterRequest: true"
bool
is_close_session
;
// the last request in session, in the header will be added "SessionCloseAfterRequest: true"
dap_client_callback_data_size_t
request_response_callback
;
dap_client_callback_data_size_t
request_response_callback
;
dap_client_callback_int_t
request_error_callback
;
dap_client_callback_int_t
request_error_callback
;
...
...
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