So, I'm working on creating an implementation of TLS and it requires a 24-bit Message Length field preceded by an 8-bit Handshake Message Type. For the 8-bit field I can just use a char right? But how can I create a 24-bit object?
I know I've seen somewhere, something called a u_int24 or something like that, but I don't know how to create one or what that actually is. Does anyone know?