first byte of the message from server, versions from 0-128, msb of 1 means more bytes in version number
Represented as a single byte similar to the version number, until more are needed
First 4 bytes are the length Rest of the data are serialized metadata package
First 8 bytes are the modification time of the file in seconds Next 4 bytes are the length of the filename Next 8 bytes are the length of the file Next data is the filename itself Next data is the file contents
1 byte with 0 for success and 1 for failure
First 4 bytes are the length of the filename Rest of the data is the filename
First 8 bytes are the modification time of the file in seconds Next 8 bytes are the length of the file Next data is the file contents
First 8 bytes are the modified time Next 4 bytes are the filename’s length Rest of the data is the filename
Single byte return 0 for success 1 for failure
Represented as a single byte similar to the version number, until more are needed
0 for modification 1 for deletion
0 for success 1 for failure
NOTE: NEED AN ACK SYSTEM FOR COMMANDS TO PREVENT RACE CONDITIONS