Results 1 to 6 of 6

Thread: Manual control of a Glacier2 client

  1. #1
    mmorckos is offline Registered User
    Name: Michael Morckos
    Organization: University of Waterloo
    Project: Distributed multi-robot control framework
    Join Date
    Dec 2011
    Posts
    13

    Manual control of a Glacier2 client

    Hi,

    I'm quite a beginner in Ice and I'm working on an application where I need a component to use a Glacier2 client as a communication port to some server. All the demos and examples I read have the client program inheret from Glacier2::Application and calling the "main" function which takes care of session creation and the main event loop.

    What I want is manual control over the client so that the main event loop will reside in my component and not the Glacier2 client. The component can manual create/destroy sessions, send messages...etc.

    Regards,
    Michael

  2. #2
    xdm's Avatar
    xdm
    xdm is online now ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588
    Hi,

    For Java and C# there are also GUI Helper Classes see java/demo/Glacier2/chat or cs/demo/Glacier2/chat for sample usage. The Chat Demo also made use of these classes.

  3. #3
    mmorckos is offline Registered User
    Name: Michael Morckos
    Organization: University of Waterloo
    Project: Distributed multi-robot control framework
    Join Date
    Dec 2011
    Posts
    13
    Hi,

    I forgot to mention that I'm looking for such functionality in C++. I read the Java example before but I'm having some hard time porting it to C++ so I'm wondering if it's feasible in the first place.

    I apologize for that.

    Regards,
    Michael

  4. #4
    xdm's Avatar
    xdm
    xdm is online now ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588
    A C++ version of this classes is available with IceTouch-1.2.0 C++ SDK, download the source distribution and see files under "IceTouch-1.2.0/cpp/src/Glacier2Lib/" directory, you can compile that files with your C++ application and will probably work, let us know if you found any issue. Next Ice release is likely to also include that GUI C++ helpers.

  5. #5
    mmorckos is offline Registered User
    Name: Michael Morckos
    Organization: University of Waterloo
    Project: Distributed multi-robot control framework
    Join Date
    Dec 2011
    Posts
    13
    Hi,

    This sounds like a good idea but I'm working on a highly distributed system involving robotic entities. I don't actually need to have a GUI but I'm following a component-based methodology in my design and wanted to separate the communication port (Client) from the rest of the application. I'm pretty sure there is a work-around.

    Thanks for you prompt response.

    Regards,
    Michael

  6. #6
    xdm's Avatar
    xdm
    xdm is online now ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588
    Note that even we have named it "GUI Helper Classes" this classes aren't GUI specific just that the common use cases is GUI applications. Also if you look at the implementation you will see what is required to manually create something similar that is more appropriate to your needs.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. client glacier2 issues
    By cloudwafancy in forum Help Center
    Replies: 1
    Last Post: 03-17-2010, 07:19 AM
  2. Get the client's IP from behind Glacier2
    By Pompei2 in forum Help Center
    Replies: 4
    Last Post: 08-24-2009, 05:11 AM
  3. User access control with glacier2
    By OrNot in forum Comments
    Replies: 2
    Last Post: 07-15-2005, 10:32 PM
  4. Glacier2 Questions (couldn't find answers in manual)
    By Wayetender in forum Help Center
    Replies: 7
    Last Post: 05-04-2005, 08:48 AM
  5. Client with several Glacier2 routers
    By GJ Giezeman in forum Help Center
    Replies: 1
    Last Post: 04-01-2005, 07:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •