|
|
@ -10,12 +10,10 @@ const UE_RECEIVED_FIELD_SIZE: usize = 4; |
|
|
|
// Defines how many bytes is used to encode "LENGTH" field, describing length of
|
|
|
|
// Defines how many bytes is used to encode "LENGTH" field, describing length of
|
|
|
|
// next JSON message from ue-server
|
|
|
|
// next JSON message from ue-server
|
|
|
|
const UE_LENGTH_FIELD_SIZE: usize = 4; |
|
|
|
const UE_LENGTH_FIELD_SIZE: usize = 4; |
|
|
|
// Value indicating that next byte sequence from ue-server reports amount of bytes received by
|
|
|
|
// Arbitrary value indicating that next byte sequence from ue-server reports amount of bytes
|
|
|
|
// that server so far. Value itself is arbitrary.
|
|
|
|
// received by that server so far.
|
|
|
|
|
|
|
|
|
|
|
|
const HEAD_UE_RECEIVED: u8 = 85; |
|
|
|
const HEAD_UE_RECEIVED: u8 = 85; |
|
|
|
// Value indicating that next byte sequence from ue-server contains JSON message.
|
|
|
|
// Arbitrary value indicating that next byte sequence from ue-server contains JSON message.
|
|
|
|
// Value itself is arbitrary.
|
|
|
|
|
|
|
|
const HEAD_UE_MESSAGE: u8 = 42; |
|
|
|
const HEAD_UE_MESSAGE: u8 = 42; |
|
|
|
// Maximum allowed size of JSON message sent from ue-server.
|
|
|
|
// Maximum allowed size of JSON message sent from ue-server.
|
|
|
|
const MAX_UE_MESSAGE_LENGTH: usize = 25 * 1024 * 1024; |
|
|
|
const MAX_UE_MESSAGE_LENGTH: usize = 25 * 1024 * 1024; |
|
|
|