Skip to content

Package (VOTP)

Tim edited this page Feb 23, 2023 · 4 revisions

The package consists of two parts a header and a body (and a ID).

image

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.

image

Furthermore, it includes a package ID for sending and receiving reasons. For deserialization, a constructor is used.

Clone this wiki locally