mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2025-12-26 14:18:31 +00:00
streaming: define max of number of concurrent streams
This definition is lacking in client while in server it is hardcoded to 50. Having a well defined limitation allow us to make the code more robust and optimized. Signed-off-by: Victor Toso <victortoso@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
87441524f4
commit
545fbb8b11
@ -45,6 +45,12 @@
|
||||
#define SPICE_TICKET_KEY_PAIR_LENGTH 1024
|
||||
#define SPICE_TICKET_PUBKEY_BYTES (SPICE_TICKET_KEY_PAIR_LENGTH / 8 + 34)
|
||||
|
||||
/*
|
||||
* This is the maximum number of streams possible.
|
||||
* IDs will be in the interval [0, SPICE_MAX_NUM_STREAMS).
|
||||
*/
|
||||
#define SPICE_MAX_NUM_STREAMS 64
|
||||
|
||||
typedef struct SPICE_ATTR_PACKED SpiceLinkHeader {
|
||||
uint32_t magic;
|
||||
uint32_t major_version;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user