Status Update
The Chungles server/client classes are now being developed. The latest cvs commit now has the ability to share and view shares. This is configurable via a config.xml file in the working directory. Naturally things will change -- it's very rudimentary. The config file has a group called 'shares' and in that, 'share' tags with a name and map property. Name is the friendly Chungles share name and map is the local filesystem's path to the share. I'll have a pretty GUI configuration editor, don't worry.
The protocol for Chungles right now is fairly simple and straightforward. Here's a rundown of what I have thusfar:
- Server listens on port 6565
- Protocol is binary based.
- Client sends to server command it wishes to execute followed by parameters right after terminated by newline character.
- Ex. "LIST_SHARES/\n" (where LIST_SHARES is defined as an integer 2) will ask the server for all the shares it has
- Server replies to a LIST_SHARES command by listing the path and sending file/directory names back denoting if it is a file or directory with a 'F' or a 'D' character before the name and signals it is done listing with a terminator character and newline (integer 1 + \n)
- Ex. "D/dump\nD/dump2\nTERMINATOR\n"