The constants module, or at least the TAGLEN and MAXMSGLEN constants, should be exposed as a public API.
write_message and read_message have limitations on the size of the message based on the two above values, however it's impossible for users of the API to know the maximum length without copying those constants into their own code.
The
constantsmodule, or at least theTAGLENandMAXMSGLENconstants, should be exposed as a public API.write_messageandread_messagehave limitations on the size of the message based on the two above values, however it's impossible for users of the API to know the maximum length without copying those constants into their own code.