Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dapcash-node
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
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
DapCash
dapcash-node
Commits
8f6eb4aa
Commit
8f6eb4aa
authored
4 years ago
by
Constantin Papizh
Browse files
Options
Downloads
Patches
Plain Diff
Winsock init
parent
f035026c
No related branches found
No related tags found
1 merge request
!15
Winsock init
Pipeline
#2900
passed with stage
in 1 minute and 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sources/main.c
+12
-0
12 additions, 0 deletions
sources/main.c
with
12 additions
and
0 deletions
sources/main.c
+
12
−
0
View file @
8f6eb4aa
...
@@ -206,6 +206,15 @@ int main( int argc, const char **argv )
...
@@ -206,6 +206,15 @@ int main( int argc, const char **argv )
#endif
#endif
}
}
#ifdef __WIN32
WSADATA
wsaData
;
int
ret
=
WSAStartup
(
MAKEWORD
(
2
,
2
),
&
wsaData
);
if
(
ret
!=
0
)
{
log_it
(
L_CRITICAL
,
"Couldn't init Winsock DLL, error: %d"
,
ret
);
return
-
2
;
}
#endif
if
(
dap_server_init
(
l_thread_cnt
)
!=
0
)
{
if
(
dap_server_init
(
l_thread_cnt
)
!=
0
)
{
log_it
(
L_CRITICAL
,
"Can't init socket server module"
);
log_it
(
L_CRITICAL
,
"Can't init socket server module"
);
return
-
4
;
return
-
4
;
...
@@ -420,6 +429,9 @@ int main( int argc, const char **argv )
...
@@ -420,6 +429,9 @@ int main( int argc, const char **argv )
// Deinit modules
// Deinit modules
failure:
failure:
#ifdef __WIN32
WSACleanup
();
#endif
dap_stream_deinit
();
dap_stream_deinit
();
dap_stream_ctl_deinit
();
dap_stream_ctl_deinit
();
...
...
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