Project

General

Profile

Bug #297 ยป 0024-HACKING-Correct-networking-headers-location.patch

Marko Lindqvist, 03/08/2024 07:27 AM

View differences:

doc/HACKING
All information passed between the server and clients, must be sent
through the network as serialized packet structures.
These are defined in common/packets.h.
These are defined in common/networking/packets.h.
For each 'foo' packet structure, there is one send and one receive function:
......
The receive_packet_foo() function de-serializes a bytestream into a
structure and removes the bytestream from the input buffer in the
connection struct.
The connection struct is defined in common/connection.h.
The connection struct is defined in common/networking/connection.h.
Each structure field in a structure is serialized using architecture
independent functions such as dio_put_uint32() and de-serialized with
    (1-1/1)