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:
parent
c4dafd31b6
commit
7ac93b664d
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user