/workspaces/astro/sol3-sdk/cpp/sol3/net/data_frame.h Source File

Space-ng SDK: /workspaces/astro/sol3-sdk/cpp/sol3/net/data_frame.h Source File
Space-ng SDK
data_frame.h
Go to the documentation of this file.
1 // Copyright (c) Space-ng, inc. All rights reserved.
2 
3 #pragma once
4 
6 
7 #include <cstdint>
8 
9 namespace sol3::net {
10 
11 // A frame of data exchanged over a TCP connection
12 struct DataFrame {
13  uint8_t const* data = nullptr;
14  std::size_t size = 0;
16 };
17 
18 } // namespace sol3::net
Definition: buffer_pool.h:12
uint64_t TcpConnectionId
A unique identifier for a TCP connection.
Definition: tcp_connection_id.h:10
Definition: data_frame.h:12
TcpConnectionId connection_id
Definition: data_frame.h:15
uint8_t const * data
Definition: data_frame.h:13
std::size_t size
Definition: data_frame.h:14