Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-chain-net
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-chain-net
Commits
e327bb58
Commit
e327bb58
authored
4 years ago
by
Constantin Papizh
Browse files
Options
Downloads
Patches
Plain Diff
Crosspt fix
parent
1ea0c16b
No related branches found
No related tags found
1 merge request
!77
Conserver socket fix
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dap_chain_node_cli.c
+6
-2
6 additions, 2 deletions
dap_chain_node_cli.c
with
6 additions
and
2 deletions
dap_chain_node_cli.c
+
6
−
2
View file @
e327bb58
...
...
@@ -937,10 +937,14 @@ int dap_chain_node_cli_init(dap_config_t * g_config)
log_it
(
L_INFO
,
"Console interace on addr %s port %u "
,
l_listen_addr_str
,
l_listen_port
);
server_addr
.
sin_family
=
AF_INET
;
IN_ADDR
_in_addr
=
{
{
.
S_addr
=
htonl
(
INADDR_LOOPBACK
)
}
};
#ifdef _WIN32
struct
in_addr
_in_addr
=
{
{
.
S_addr
=
htonl
(
INADDR_LOOPBACK
)
}
};
server_addr
.
sin_addr
=
_in_addr
;
server_addr
.
sin_port
=
l_listen_port
;
#else
inet_pton
(
AF_INET
,
l_listen_addr_str
,
&
server_addr
.
sin_addr
);
server_addr
.
sin_port
=
htons
(
(
uint16_t
)
l_listen_port
);
#endif
// create socket
if
(
(
sockfd
=
socket
(
AF_INET
,
SOCK_STREAM
,
0
))
==
INVALID_SOCKET
)
{
#ifdef __WIN32
...
...
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