Archived
This forum has been archived. Please start a new discussion on GitHub.
program in different platform
hi guys,
I want to put a client on windows
and server on Linux
could the Ice do that?
thanks
I want to put a client on windows
and server on Linux
could the Ice do that?
thanks
0
Comments
-
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.0
-
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?0 -
ofcourse ,these two PC nodes is in a LAN
one 's Ip is :192.168.0.158
the other's is 192.168.0.370 -
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
andHello.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.0 -
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'0 -
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.0