-
Notifications
You must be signed in to change notification settings - Fork 0
Package (VOTP)
The package consists of two parts a header and a body (and a ID).
It is being used for communication over the Internet. For that reason it will be serialized in JSON and send as bytes to the receiver. The package uses 2 interfaces for its body and its header for modularity. This requires a system in the background that works with generic bodies and headers for serialization. For this reason, it has its own serialization function which converts all parts of itself to JSON string and combines them afterward. In addition to that it also has a pre-header for the information about the type of the body and the header.
Furthermore, it includes a package ID for sending and receiving reasons. For deserialization, a constructor is used.
WIP - Many parts of the Programm are not finished yet or in a unclear state. So many entries are not very extensive.
Author - Timeplex