Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-stream-ch-chain-net-srv
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-stream-ch-chain-net-srv
Commits
d50cfc06
Commit
d50cfc06
authored
6 years ago
by
Dmitriy A. Gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[+] chain_net_srv channel packet skeleton
parent
93e3c185
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+2
-2
2 additions, 2 deletions
CMakeLists.txt
dap_stream_ch_chain_net_srv_pkt.c
+50
-0
50 additions, 0 deletions
dap_stream_ch_chain_net_srv_pkt.c
dap_stream_ch_chain_net_srv_pkt.h
+1
-0
1 addition, 0 deletions
dap_stream_ch_chain_net_srv_pkt.h
with
53 additions
and
2 deletions
CMakeLists.txt
+
2
−
2
View file @
d50cfc06
cmake_minimum_required
(
VERSION 3.0
)
project
(
dap_stream_ch_chain_net_srv
)
set
(
DAP_STREAM_CH_CHAIN_NET_SRV_SRCS dap_stream_ch_chain_net_srv.c
)
set
(
DAP_STREAM_CH_CHAIN_NET_SRV_SRCS dap_stream_ch_chain_net_srv.c
dap_stream_ch_chain_net_srv_pkt.c
)
add_library
(
${
PROJECT_NAME
}
STATIC
${
DAP_STREAM_CH_CHAIN_NET_SRV_SRCS
}
)
target_link_libraries
(
dap_stream_ch_chain_net_srv dap_core dap_crypto dap_core_server dap_stream dap_stream_ch dap_stream_ch_chain dap_stream_ch_chain_net
)
target_link_libraries
(
dap_stream_ch_chain_net_srv dap_core dap_crypto
dap_chain dap_chain_net dap_chain_net_srv
dap_core_server dap_stream dap_stream_ch dap_stream_ch_chain dap_stream_ch_chain_net
)
target_include_directories
(
dap_stream_ch_chain_net_srv INTERFACE .
)
This diff is collapsed.
Click to expand it.
dap_stream_ch_chain_net_srv_pkt.c
0 → 100644
+
50
−
0
View file @
d50cfc06
/*
* Authors:
* Dmitriy A. Gearasimov <gerasimov.dmitriy@demlabs.net>
* DeM Labs Inc. https://demlabs.net
* Kelvin Project https://github.com/kelvinblockchain
* Copyright (c) 2017-2018
* All rights reserved.
This file is part of DAP (Deus Applications Prototypes) the open source project
DAP (Deus Applicaions Prototypes) is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
DAP is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with any DAP based project. If not, see <http://www.gnu.org/licenses/>.
**/
#include
<stdint.h>
#include
<stddef.h>
#include
"dap_chain_net_srv_common.h"
typedef
struct
dap_stream_ch_chain_net_srv_pkt_hdr
{
dap_chain_net_srv_uid_t
srv_uid
;
uint32_t
type
;
// Chain data type
union
{
struct
{
}
type_block
;
struct
{
}
type_datum
;
struct
{
}
type_global_db
;
};
}
__attribute__
((
packed
))
dap_stream_ch_chain_net_srv_pkt_hdr_t
;
typedef
struct
dap_stream_ch_chain_net_srv_pkt
{
dap_stream_ch_chain_net_srv_pkt_hdr_t
hdr
;
uint8_t
data
[];
}
__attribute__
((
packed
))
dap_stream_ch_chain_net_srv_pkt_t
;
This diff is collapsed.
Click to expand it.
dap_stream_ch_chain_net_srv_pkt.h
0 → 100644
+
1
−
0
View file @
d50cfc06
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