Results 1 to 2 of 2

Thread: Chat Demo server implementation in c#

  1. #1
    Helicera is offline Registered User
    Name: Aleksey Filippov
    Organization: Institute for entrepreneurship "Strategy"
    Project: Simple chat
    Join Date
    Jan 2011
    Posts
    5

    Chat Demo server implementation in c#

    Hello! I wanted to implement Chat Demo's project ChatRoom (and then entire server part) in c#. But encountered that IceUtil isn't reachable in my c# project due to its COM-visibility. I'm starter in Ice, but I'm very interested.

    1. Can I use c#'s Threading.Mutex instead of its IceUtil implementation?
    2. What purpose in inheritng the ChatRoom class from IceUtil::Shared?
    3. What gives IceUtil::Shared?
    4. What should I use instead of smart pointers (e.g. IceUtil::Handle<T>) in c# implementation?
    Addtional information:

    • Ice Version: 3.4.1
    • Compiler/IDE: Visual Studio 2010
    • OS: Windows 7

    Thanks!

  2. #2
    xdm's Avatar
    xdm
    xdm is offline 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

    Hello! I wanted to implement Chat Demo's project ChatRoom (and then entire server part) in c#. But encountered that IceUtil isn't reachable in my c# project due to its COM-visibility. I'm starter in Ice, but I'm very interested.
    IceUtil isn't designed to be used in C# or .NET projects, is just for C++ applications.

    See http://www.zeroc.com/doc/Ice-3.4.1-I...f_2.html#73565
    Can I use c#'s Threading.Mutex instead of its IceUtil implementation?
    Yes, absolutely, you should use .NET threading API to implement your server and clients.

    # What purpose in inheritng the ChatRoom class from IceUtil::Shared?
    # What gives IceUtil::Shared?
    The ChatRoom inherits Shared to use the Ice C++ reference counting system, Shared is necessary to use Ice reference counting system in C++, see the manual for the details.

    http://www.zeroc.com/doc/Ice-3.4.1-I...til.52.10.html

    # What should I use instead of smart pointers (e.g. IceUtil::Handle<T>) in c# implementation?
    In C# just create a normal class, .NET already provides garbage collection so you don't need smart pointers.

    Good luck with your chat server implementation
    Jose

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Chat Demo Scalability
    By AgentShark in forum Help Center
    Replies: 2
    Last Post: 01-03-2011, 05:20 PM
  2. about chat demo
    By wangjun in forum Help Center
    Replies: 6
    Last Post: 12-20-2010, 08:01 AM
  3. Chat Demo 1.3.0 released
    By mes in forum Announcements
    Replies: 0
    Last Post: 12-14-2010, 10:57 AM
  4. Chat Demo 1.1.0 released
    By xdm in forum Announcements
    Replies: 0
    Last Post: 10-02-2008, 01:05 PM
  5. Introducing the Chat Demo
    By mes in forum Announcements
    Replies: 0
    Last Post: 07-15-2008, 02:24 PM

Posting Permissions

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