KxSystems / mqtt

MQTT messaging protocol interface
https://code.kx.com/q/interfaces
Apache License 2.0
9 stars 12 forks source link

Instruction header improvement #9

Closed sshanks-kx closed 4 years ago

sshanks-kx commented 4 years ago

Looks like a header with size and either 'a','b','c' sent across the connection in order to transmit actions. Could be a struct with an enum instead e.g. mqttaction {long size;action_type action) were action_type is a new enum. Will make the code easier to read/understand NOTE: above code is just an example - don't need to use same variable names/etc