Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-server-udp
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-server-udp
Commits
08bda843
Unverified
Commit
08bda843
authored
5 years ago
by
Dmitriy A. Gerasimov
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #8 from cellframe/1.1-11-Win
1.1-11-Win
parents
e320774d
76426a11
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CMakeLists.txt
+11
-0
11 additions, 0 deletions
CMakeLists.txt
dap_udp_client.c
+2
-2
2 additions, 2 deletions
dap_udp_client.c
dap_udp_server.c
+2
-1
2 additions, 1 deletion
dap_udp_server.c
dap_udp_server.h
+4
-5
4 additions, 5 deletions
dap_udp_server.h
with
19 additions
and
8 deletions
CMakeLists.txt
+
11
−
0
View file @
08bda843
...
...
@@ -21,6 +21,17 @@ endif()
set
(
DAP_UDP_SERVER_SRCS dap_udp_server.c dap_udp_client.h dap_udp_client.c
)
if
(
WIN32
)
include_directories
(
../libdap/src/win32/
)
include_directories
(
../3rdparty/libmemcached/
)
include_directories
(
../3rdparty/libmemcached/win32/
)
include_directories
(
../3rdparty/wepoll/include/
)
include_directories
(
../3rdparty/uthash/src/
)
include_directories
(
../3rdparty/libjson-c/
)
include_directories
(
../3rdparty/libmagic/src/
)
include_directories
(
../3rdparty/curl/include/
)
endif
()
add_library
(
${
PROJECT_NAME
}
STATIC
${
DAP_UDP_SERVER_SRCS
}
)
target_link_libraries
(
${
PROJECT_NAME
}
dap_core dap_server_core
)
...
...
This diff is collapsed.
Click to expand it.
dap_udp_client.c
+
2
−
2
View file @
08bda843
/*
Copyright (c) 2017-201
8
(c) Project "DeM Labs Inc" https://
github.com/
demlabs
inc
Copyright (c) 2017-201
9
(c) Project "DeM Labs Inc" https://demlabs
.net
All rights reserved.
This file is part of DAP (Deus Applications Prototypes) the open source project
...
...
@@ -45,7 +45,7 @@
#include
<mswsock.h>
#include
<ws2tcpip.h>
#include
<io.h>
#include
"wrappers.h"
//
#include "wrappers.h"
#include
<wepoll.h>
#include
<pthread.h>
#endif
...
...
This diff is collapsed.
Click to expand it.
dap_udp_server.c
+
2
−
1
View file @
08bda843
...
...
@@ -47,7 +47,7 @@
#include
<mswsock.h>
#include
<ws2tcpip.h>
#include
<io.h>
#include
"wrappers.h"
//
#include "wrappers.h"
#include
<wepoll.h>
#include
<pthread.h>
#endif
...
...
@@ -443,3 +443,4 @@ error:
return
;
}
This diff is collapsed.
Click to expand it.
dap_udp_server.h
+
4
−
5
View file @
08bda843
/*
Copyright (c) 2017-201
8
(c) Project "DeM Labs Inc" https://github.com/demlabsinc
Copyright (c) 2017-201
9
(c) Project "DeM Labs Inc" https://github.com/demlabsinc
All rights reserved.
This file is part of DAP (Deus Applications Prototypes) the open source project
...
...
@@ -61,7 +61,6 @@ typedef struct dap_udp_server {
#define DAP_UDP_SERVER(a) ((dap_udp_server_t *) (a)->_inheritor)
extern
void
dap_udp_server_delete
(
dap_server_t
*
sh
);
extern
void
dap_udp_server_loop
(
dap_server_t
*
udp_server
);
// Start server event loop
extern
dap_server_t
*
dap_udp_server_listen
(
uint16_t
port
);
// Create and bind server
void
dap_udp_server_delete
(
dap_server_t
*
sh
);
void
dap_udp_server_loop
(
dap_server_t
*
udp_server
);
// Start server event loop
dap_server_t
*
dap_udp_server_listen
(
uint16_t
port
);
// Create and bind serv
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