[plug] Allowing only 1 user read access to a file at a time.

Ishwor Gurung ishwor.gurung at gmail.com
Mon Jan 11 19:53:19 WST 2010

2010/1/11 Ishwor Gurung <ishwor.gurung at gmail.com>:
> It takes ~100 lines of Python code (just to give a rough estimate..
> should defeiniltey be more in C and so so in Java) to implement a tcp
> server that sends down public key to clients. Add another hundred for
> receiving through socket and verificaiton of "one copy at any one
> time" requirement. That's about 300-400 lines of code and your jobs
> done.

Before I hit the shack, just a small update. I don't think i took into
account the status of the user; the server wouldn't know when a user
has closed the document; There probably is a better way of dealing
with this using callback handler thats invoked when the client close(
) the file handle.
Ishwor Gurung
Key id:0xa98db35e
Key fingerprint:FBEF 0D69 6DE1 C72B A5A8  35FE 5A9B F3BB 4E5E 17B5

More information about the plug mailing list