Archived

This forum has been archived. Please start a new discussion on GitHub.

How to use IcePatch?

I think this service is useful for us.
Could you show me some sample code for further study?
Thanks.

Comments

  • Re: How to use IcePatch

    A chapter on IcePatch for the documentation is on our TODO list.
    For the time being, I'm afraid you have to read the source code.

    Cheers,

    Michi.
  • mes
    mes California
    Re: How to use IcePatch?

    Hi,
    Originally posted by alwayscy1
    I think this service is useful for us.
    Could you show me some sample code for further study?
    Thanks.

    The IcePatch server and client are very easy to use. The server really only needs one property defined:
    icepatchserver --IcePatch.Endpoints="tcp -p 10000"
    
    If you don't specify a value for the IcePatch.Directory property, then the server's current working directory is used. That's all there is to it, actually. Periodically the server will descend its directory and compress all of the files it finds, which means new files you add to the directory while the server is running will be compressed automatically.

    The client is equally simple. It can use the same property settings as the server, meaning the client and server can share a configuration file if you like. When you run icepatchclient, it automatically synchronizes the filesystem in its current working directory (or other directories you specify on the command-line) with the IcePatch server.

    If you have additional questions, please feel free to ask.

    - Mark
  • Thank you very much!
    I'll try it immediately!:)