Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
celllframe-node
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
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
Show more breadcrumbs
Dmitry Puzyrkov
celllframe-node
Commits
8204215d
Commit
8204215d
authored
4 years ago
by
Constantin Papizh
Browse files
Options
Downloads
Patches
Plain Diff
Windows conserver issues fixed
parent
e1a763e6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cellframe-sdk
+1
-1
1 addition, 1 deletion
cellframe-sdk
sources/main_node_cli.c
+8
-0
8 additions, 0 deletions
sources/main_node_cli.c
with
9 additions
and
1 deletion
cellframe-sdk
@
c28cf7f7
Compare
089e7789
...
c28cf7f7
Subproject commit
089e77898b3b073ec6578358eda99fe52c49ecc8
Subproject commit
c28cf7f7b5680a87193ffc68733372c31dc2b37f
This diff is collapsed.
Click to expand it.
sources/main_node_cli.c
+
8
−
0
View file @
8204215d
...
@@ -227,6 +227,8 @@ int main(int argc, const char *argv[])
...
@@ -227,6 +227,8 @@ int main(int argc, const char *argv[])
const
char
*
listen_socket
=
dap_config_get_item_str
(
g_config
,
"conserver"
,
"listen_unix_socket_path"
);
// unix socket mode
const
char
*
listen_socket
=
dap_config_get_item_str
(
g_config
,
"conserver"
,
"listen_unix_socket_path"
);
// unix socket mode
#else
#else
const
char
*
listen_socket
=
NULL
;
const
char
*
listen_socket
=
NULL
;
WSADATA
wsaData
;
WSAStartup
(
MAKEWORD
(
2
,
2
),
&
wsaData
);
#endif
#endif
cparam
=
dap_app_cli_connect
(
listen_socket
);
cparam
=
dap_app_cli_connect
(
listen_socket
);
...
@@ -261,12 +263,18 @@ int main(int argc, const char *argv[])
...
@@ -261,12 +263,18 @@ int main(int argc, const char *argv[])
// Send command
// Send command
int
res
=
dap_app_cli_post_command
(
cparam
,
&
cmd
);
int
res
=
dap_app_cli_post_command
(
cparam
,
&
cmd
);
dap_app_cli_disconnect
(
cparam
);
dap_app_cli_disconnect
(
cparam
);
#ifdef _WIN32
WSACleanup
();
#endif
return
res
;
return
res
;
}
else
{
}
else
{
// command not found, start interactive shell
// command not found, start interactive shell
shell_reader_loop
();
shell_reader_loop
();
dap_app_cli_disconnect
(
cparam
);
dap_app_cli_disconnect
(
cparam
);
}
}
#ifdef _WIN32
WSACleanup
();
#endif
return
0
;
return
0
;
}
}
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