Skip to content
Snippets Groups Projects
Commit d50cfc06 authored by Dmitriy A. Gerasimov's avatar Dmitriy A. Gerasimov
Browse files

[+] chain_net_srv channel packet skeleton

parent 93e3c185
No related branches found
No related tags found
No related merge requests found
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 .)
/*
* 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;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment