Home Help Center

PatcherFeedback in Python

Netmaster0000Netmaster0000 Member Neel EdwardsOrganization: Home(Student)Project: Server based application wide security.
Is there a PatcherFeedback like class to descend from in python to create an Icepatch client?

Comments

  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    Sorry, no. However, it wouldn't be very difficult to port the existing code from the C++ IcePatch client.
  • Netmaster0000Netmaster0000 Member Neel EdwardsOrganization: Home(Student)Project: Server based application wide security.
    Ok. I've started translating it, but I can't seem to find the class for Patcher.
  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    Sorry, what are you looking for precisely?
  • Netmaster0000Netmaster0000 Member Neel EdwardsOrganization: Home(Student)Project: Server based application wide security.
    Creating a client patcher application in python.
  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi,

    Yes, if you want a pure IcePatch2 client python implementation you'll need to port the Patcher class (implemented in src/IcePatch2/ClientUtil.cpp) to python which is probably not so trivial but certainly doable :).

    Another option would be to somehow re-use the C++ IcePatch2::Patcher class from your python application. There's several options to do this, here's two of them:
    • Use the python C/API to call the C++ code directly from python
    • Write a small C++ client process that wraps the C++ IcePatch2::Patcher class with a Slice interface, spawn this process from your python code and communicate from Python with the C++ process using the Slice wrapper interface.

    Cheers,
    Benoit.
  • Netmaster0000Netmaster0000 Member Neel EdwardsOrganization: Home(Student)Project: Server based application wide security.
    Ok. I must ask though, where do i find this src folder with ClientUtil.cpp? I've searched my entire ice and boost directories and so far, it has turned up empty.
  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    In the Ice source distribution cpp/src/IcePatch2/ClientUtil.cpp.
  • Netmaster0000Netmaster0000 Member Neel EdwardsOrganization: Home(Student)Project: Server based application wide security.
    oh...yea...that would make sense....ok. I'll try to take it from there again.
Sign In or Register to comment.