Last active
March 15, 2016 04:24
-
-
Save jwasinger/fa2c4c94a60311764c5f to your computer and use it in GitHub Desktop.
Message Header RNC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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