Results 1 to 7 of 7

Thread: program in different platform

  1. #1
    libaoli is offline Registered User
    Join Date
    Jan 2005
    Location
    beijing
    Posts
    13

    program in different platform

    hi guys,
    I want to put a client on windows
    and server on Linux
    could the Ice do that?
    thanks

  2. #2
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    Yes, of course, that's what Ice is all about. Your client and server can be written in different programming languages, running on different operating systems.

  3. #3
    libaoli is offline Registered User
    Join Date
    Jan 2005
    Location
    beijing
    Posts
    13
    but I run the program "printer" which is a demo of Ice
    the server is running on linux 9 ,
    like that ./server

    the client is running on windows which is compiling by vc.net
    like that : client.exe

    but there are errors as follows:

    .\Network.cpp:536: Ice::ConnectionRefusedException:
    connection refused: WSAECONNREFUSED

    I don't know why

    could you tell me ,marc?

  4. #4
    libaoli is offline Registered User
    Join Date
    Jan 2005
    Location
    beijing
    Posts
    13
    ofcourse ,these two PC nodes is in a LAN
    one 's Ip is :192.168.0.158
    the other's is 192.168.0.37

  5. #5
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    I would recommend to try this with the Ice-2.0.0/demo/Ice/hello demo where you can configure the host IPs in the configuration file. By default, the configuration file assumes that you will run the client and server on the same host. If you want to run them on different host, you should change the following properties in the configuration file (Ice-2.0.0/demo/Ice/hello/config):

    Code:
       Hello.Proxy=hello:tcp -h 192.168.0.158 -p 10000:udp -h 192.168.0.158 -p 10000:ssl -h 192.168.0.158 -p 10001
    and

    Code:
    Hello.Endpoints=tcp -p 10000 -h 192.168.0.158:udp -p 10000 -h 192.168.0.158:ssl -p 10001 -h 192.168.0.158
    I'm assuming here that you will be running the hello server from the host with the 192.168.0.158 ip address. You can also try this with the book demo if you want but you will have to modify the code since the proxy endpoints are hardcoded in the code (for simplicity). Let me know if this still doesn't work!

    Benoit.

  6. #6
    libaoli is offline Registered User
    Join Date
    Jan 2005
    Location
    beijing
    Posts
    13
    I'm sorry ,
    I'm running "hello" like what you say,there are errors:

    error: exception in IceSSL plug-in:
    ConfigParser.cpp:89: IceSSL::ConfigParseException:
    error while parsing sslconfig.xml:
    Parser.cpp:370: IceXML::ParserException
    unable to open file `../../../certs/sslconfig.xml'
    PluginManagerI.cpp:195: Ice::PluginInitializationException:
    plug-in initialization failed: failure in entry point `IceSSL:create'

  7. #7
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    You need to run the client and server executables from the Ice-2.0.0/demo/Ice/hello directory, for example:

    $ cd Ice-2.0.0/demo/Ice/hello
    $ ./server &
    $ ./client
    Benoit.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Cross platform and Language communication
    By abhimohpra in forum Help Center
    Replies: 2
    Last Post: 10-14-2010, 07:48 AM
  2. platform about Windows 2000
    By sober in forum Help Center
    Replies: 2
    Last Post: 05-21-2008, 03:20 AM
  3. Is this a cross-platform/language problem ?
    By rc_hz in forum Comments
    Replies: 2
    Last Post: 08-18-2006, 08:18 AM
  4. Can ICE be used in my platform?
    By pinnacle in forum Help Center
    Replies: 6
    Last Post: 01-16-2006, 01:51 AM
  5. platform feature matrix
    By dlyall in forum Comments
    Replies: 0
    Last Post: 09-02-2004, 03:52 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
  •