Define a maximum size for messages

This will certainly be revisited later. The rationale is currently to
make sure messages always fit in a TCP or UDP packet.
This commit is contained in:
Pierre Pronchery 2020-11-05 23:57:32 +01:00
parent c4dafd31b6
commit 7ac93b664d

View File

@ -59,6 +59,10 @@ typedef struct _AppMessageCallArgument
(type | (direction) << 8), (variable) (type | (direction) << 8), (variable)
/* constants */
# define APPMESSAGE_MAX_SIZE 32768
/* functions */ /* functions */
AppMessage * appmessage_new_deserialize(Buffer * buffer); AppMessage * appmessage_new_deserialize(Buffer * buffer);
/* calls */ /* calls */