Code

History

Commits on master30
  1. Added methods to the client to handle opening, reading, writing and closing files. Added a File class to provide a Python-like API for files. Changed the fid allocation strategy to allow for long-lived fids to be used.David Boddie committed 7 years ago64385b7
  2. Added a note about the client module.David Boddie committed 8 years ago2400750
  3. Added a license file and instructions.David Boddie committed 8 years agoaa7ead3
  4. Simplified the internal API of the server class and added support for the placeholder Tflush method.David Boddie committed 8 years ago0bb0ec3
  5. Fixed the "coding" declaration in the dictserver example.David Boddie committed 8 years agod95cc45
  6. Improved handling of strings, converting to and from Unicode strings where needed and using byte strings when sending socket data and interacting with the operating system. Tried to make the modules compatible with both Python 2 and Python 3.David Boddie committed 8 years ago20f573c
  7. Wrapped stat calls in try...except blocks. Ensured that attempts to write to directories result in an error code being returned to the caller. Added a new example to serve the contents of a Python dictionary.David Boddie committed 8 years agoc2476e8
  8. Added checks for missing stat information and invalid qids. Removed OSError handling since this belongs in the local file server example. Added handling of failed write commands and discarded return values from calls to the store's wstat method.David Boddie committed 8 years agob409cc8
  9. Renamed the local file server.David Boddie committed 8 years ago7a3325e
  10. Separated the server code from the host filing system code, creating specific modules for each.David Boddie committed 8 years ago1ed2761
  11. Added initial support for the flush and wstat commands.David Boddie committed 8 years agob6957db
  12. Added flush and wstat messages.David Boddie committed 8 years ago1a613cf
  13. Changed the way fids are used for path walking given that each walk is now limited to 16 elements. Removed automatic clunking of fids for failed commands because performing the clunk command could also fail. The caller of the client methods should ideally tidy up after the failed command.David Boddie committed 8 years ago86aa0c0
  14. Added a constant to the Tattach class.David Boddie committed 8 years ago941eef5
  15. Tidied up fid handling. Added support for more commands.David Boddie committed 8 years ago6eec577
  16. Added a simple client class.David Boddie committed 8 years agoc88f4d3
  17. Added a license header. Added initial support for remove messages.David Boddie committed 8 years agodbde0f8
  18. Added remove messages.David Boddie committed 8 years agof933ac5
  19. Fixed path walking to allow navigation to parent directories from a starting point within a hierarchy.David Boddie committed 8 years agoefd4b70
  20. Added support for parent directory path elements when walking a path.David Boddie committed 8 years ago3ae73b1
  21. Fixed invalid concatenation of path elements to include directory separators. Ensured that leading separators are removed in methods are called with paths constructed in this way. Added support for create and write operations.David Boddie committed 8 years ago2c133ab
  22. Added message for create and write operations.David Boddie committed 8 years agoa087d72
  23. Fixed decoding of the Rwalk command which suffered from the same problem as Twalk did earlier. Fixed handling of unsuccessful Twalk commands.David Boddie committed 8 years agob6f5cd6
  24. Fixed incorrect code in a number of places. Added support for more message types.David Boddie committed 8 years agoed5179c
  25. Fixed decoding of Twalk messages.David Boddie committed 8 years ago9348b36
  26. Committed pending changes to styx.py. Added a simple program to help with implementation.David Boddie committed 8 years ago5a7797f
  27. Attempted to improve handling of different format fields, treating certain types as special cases and allowing lengths to refer to earlier fields in a format list.David Boddie committed 8 years ago6add782
  28. Moved useful methods out into the module body as functions. Added support for more messages, including those that return file information.David Boddie committed 8 years ago4da8c8f
  29. Fixed incorrect reading of raw data. Generalised message decoding by introducing a message format parser.David Boddie committed 8 years ago9f17a3e
  30. Imported the beginnings of a Python module for handling Styx messages.David Boddie committed 8 years agob2b4e5b