Core Library 1.7.0.0 Library containing core utilities and tools for threading, networking, logging, INI and CSV file management etc.

Public Member Functions | Public Attributes | List of all members
core_lib::asio::defs::MessageHeader Struct Reference

Default message header structure that is also POD. More...

`#include <AsioDefines.h>`

## Public Member Functions
| MessageHeader ()
| Default constructor.
| ~MessageHeader ()=default
| Destructor.
| MessageHeader (const MessageHeader &)=default
| Default copy constructor.
MessageHeader & | operator= (const MessageHeader &)=default
| Default copy assignment operator.
| MessageHeader (MessageHeader &&)=default
| Default move constructor.
MessageHeader & | operator= (MessageHeader &&)=default
| Default move assignment operator.

## Public Attributes
char | magicString [MAGIC_STRING_LEN] {}
| Magic string to identify message start.
char | responseAddress [RESPONSE_ADDRESS_LEN] {}
| Response address; can be used by receiver to identify sender.
uint16_t | responsePort {0}
| Response port.
int32_t | messageId {0}
| Unique message identifier.
eArchiveType | archiveType {eArchiveType::portableBinary}
| Archive type used to serialize payload following this header.
uint32_t | totalLength {sizeof(*this)}
| Total message length including this header.

## Detailed Description

Default message header structure that is also POD.

This structure is used for all the network classes prepended with Simple, e.g. SimpleTcpClient, SimpleTcpServer etc.

The documentation for this struct was generated from the following files:

- D:/Projects/CoreLibrary/Include/Asio/AsioDefines.h
- D:/Projects/CoreLibrary/Source/Asio/AsioDefines.cpp