You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suggest adding a few additional flags to the GTCP protocol header in addition to the length parameter. These flags could include:
Compress (2 bits): Compression flag indicating whether the payload is compressed. 0 for no compression, 1 for gzip, 2 for other compression algorithms.
Serialize (2 bits): Serialization flag indicating the payload serialization scheme. 1 for JSON, 2 for Protocol Buffers.
Encrypt (1 bit): Encryption flag indicating whether the payload is encrypted. 0 for no encryption, 1 for AES encryption.
We are involved in game development, where it's common to include such flags in the protocol header. Both server and client can then unpack the payload according to the agreed-upon conventions. I suggest designing a codec interface within the framework to handle these tasks.
Describe alternatives you've considered
nothing
Additional
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem?
Option No
Describe the solution you'd like
I suggest adding a few additional flags to the GTCP protocol header in addition to the length parameter. These flags could include:
Compress (2 bits): Compression flag indicating whether the payload is compressed. 0 for no compression, 1 for gzip, 2 for other compression algorithms.
Serialize (2 bits): Serialization flag indicating the payload serialization scheme. 1 for JSON, 2 for Protocol Buffers.
Encrypt (1 bit): Encryption flag indicating whether the payload is encrypted. 0 for no encryption, 1 for AES encryption.
We are involved in game development, where it's common to include such flags in the protocol header. Both server and client can then unpack the payload according to the agreed-upon conventions. I suggest designing a codec interface within the framework to handle these tasks.
Describe alternatives you've considered
nothing
Additional
No response
The text was updated successfully, but these errors were encountered: