Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-18-2005
mario mario is offline
Registered User
 
 
Join Date: Dec 2004
Posts: 24
WSAEADDRNOTAVAIL with cable unplugged

Hello,

I have one PC with two network adapters, each one with only one IP address. I want redundancy of network adapters.

The endpoint for the objet adapter is:
tcp -p 20000 -h 100.100.2.9:tcp -p 20000 -h 100.100.2.10:tcp -p 20000 -h 127.0.0.1
When I execute my server with this configuration and the two network adapter are in a connected state the adapter initialices correctly and the clients can connect without problems.

In this situation, with one client connected to one IP address of the server (i.e: 100.100.2.9) I can unplug the cable corresponding to the network adapter with this IP and the client is capable to switch to the other IP (100.100.2.10) and continue with its work. Great! :-)

But when I try to execute my server with one cable unplugged, the adapter can't initialice and raises an exception:

performance_ice_server_d: .\Network.cpp:404: Ice::SocketException:
socket exception: WSAEADDRNOTAVAIL

My question is, can Ice initialice the Object Adapter without one IP and, after, when the cable goes plugged and the network connection is up, the server can listen at the two interfaces.

Version: Ice 2.0.0 en WindowsXP SP2 (with TCP/IP Media Sense activated).

Best regards,
Mario

PD: Sorry about my english ;-)
Reply With Quote
  #2 (permalink)  
Old 02-18-2005
marc's Avatar
marc marc is online now
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
You can use -h 0.0.0.0, which means that Ice will listen on any available network interface. However, the drawback of this is that collocated objects are not recognized, and therefore local calls to Ice objects are not optimized.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 06:57 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.