summaryrefslogtreecommitdiff
path: root/src/components/protocol_handler/include
diff options
context:
space:
mode:
authorjacobkeeler <jacob.keeler@livioradio.com>2017-07-25 11:17:06 -0400
committerjacobkeeler <jacob.keeler@livioradio.com>2017-07-25 11:17:06 -0400
commit64bfd2c583784a7239b0cb641b5c9d448169675c (patch)
tree84233af9c784f7f029afa3e34b31c5df13a86f39 /src/components/protocol_handler/include
parent67966b50aa3a1ab95ea6d6fd591ddfdff5977ef7 (diff)
downloadsdl_core-64bfd2c583784a7239b0cb641b5c9d448169675c.tar.gz
Add protocol version 5 with service-specific MTU
Diffstat (limited to 'src/components/protocol_handler/include')
-rw-r--r--src/components/protocol_handler/include/protocol_handler/protocol_packet.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/components/protocol_handler/include/protocol_handler/protocol_packet.h b/src/components/protocol_handler/include/protocol_handler/protocol_packet.h
index f8696c46a0..276c416d59 100644
--- a/src/components/protocol_handler/include/protocol_handler/protocol_packet.h
+++ b/src/components/protocol_handler/include/protocol_handler/protocol_packet.h
@@ -99,7 +99,19 @@ class ProtocolPacket {
* \brief Setter/getter maximum payload size of packets
*/
void set_max_payload_size(const size_t max_payload_size);
+ void set_max_control_payload_size(const size_t max_payload_size);
+ void set_max_rpc_payload_size(const size_t max_payload_size);
+ void set_max_audio_payload_size(const size_t max_payload_size);
+ void set_max_video_payload_size(const size_t max_payload_size);
+
size_t max_payload_size() const;
+ size_t max_control_payload_size() const;
+ size_t max_rpc_payload_size() const;
+ size_t max_audio_payload_size() const;
+ size_t max_video_payload_size() const;
+
+ size_t max_payload_size_by_service_type(const ServiceType type) const;
+
/**
* \brief Check ProtocolHeader according to protocol requiements
*/
@@ -107,6 +119,10 @@ class ProtocolPacket {
private:
size_t max_payload_size_;
+ size_t max_control_payload_size_;
+ size_t max_rpc_payload_size_;
+ size_t max_audio_payload_size_;
+ size_t max_video_payload_size_;
};
/**