Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to retrieve the local IP address on client side within an interceptor?

Answer Posted / chaitanya

OAccessing the local address on the client-side, e.g. in an interceptor can be achieved by using the following code:

CORBA::Object_var obj = orb->resolve_initial_references("IT_IPTransport");

if (CORBA::is_nil(obj))

{

self_addr = (const char*) 0;

return;

}

IT_ATLI2_IP::IPTransport_ptr ip_transport = IT_ATLI2_IP::IPTransport::_narrow(obj);

if (CORBA::is_nil(ip_transport))

{

self_addr = (const char*) 0;

return;

}

CORBA::String_var hostname = ip_transport->local_node_name();

IT_ATLI2_IP::IPAddressSeq_var ip_addresses =

ip_transport->name_to_addresses(

hostname,

0,

IT_ATLI2_IP::PROTOCOL_TCP,

IT_UtcT::never()

);

IT_ATLI2_IP::IPAddress_var ip_address = ip_addresses[0];

self_addr = ip_address->node_literal();

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how you can configure orbix logging?

783


What do you recommended for clients using the jdk orb?

743


Does interceptor capture ssl handshaking errors?

880


Can a client use jdk orb to communicate with orbix domain?

748


Explain how you can configure an orbix domain to contain corbaloc references instead of iors for the orbix services?

763


Were java applets supported in orbix 6.3?

783


How we can access to corba objects in orbix?

760


Explain how to limit the connections to from a service?

742


Explain how to change the port of the orbix notification service?

794


Does orbix provide tool to remove surplus empty lines from an orbix configuration file?

744


Explain how to configure the license of orbix 3.3?

780


Does the orbix have size limit for corba messages?

795


How you can configure an orbix domain to contain corbaloc references instead of iors for the orbix services?

742


Does orbix 3 support vos (virtualization operating systems)?

738


Explain how you can retrieve the local ip address on client side within an interceptor?

773