Home Help Center

program in different platform

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

Comments

  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    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.
  • libaolilibaoli Member
    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?
  • libaolilibaoli Member
    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
  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    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):
       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
    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.
  • libaolilibaoli Member
    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'
  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    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.
Sign In or Register to comment.