Skip to content

Instantly share code, notes, and snippets.

@jwasinger
Last active March 15, 2016 04:24
Show Gist options
  • Save jwasinger/fa2c4c94a60311764c5f to your computer and use it in GitHub Desktop.
Save jwasinger/fa2c4c94a60311764c5f to your computer and use it in GitHub Desktop.
Message Header RNC
#define TYPE_POST_CHUNK 1
//post chunk followed by ChunkHeader and payload
#define TYPE_REQUEST_CHUNK 2
//request chunk followed by null-terminated chunk file name str
#define TYPE_ACKNOWLEDGE 3
//message followed by nothing
#define TYPE_ERROR 4
//message followed by null-terminated error string
struct MessageHeader {
int Type;
int MessageLen; //the length of the data that follows this header
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment