<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi friends,<br><br>As you know, stringified IOR is a string that contains string in hexa decimal e.g. IOR:010000001300000049444c3a746573742f48656c6c6f3a312e30000001000000000000006c000000010102000f<br>00000031302e3132382e3234302e31323200004407000013000000ff6d79504f41002ccbc74c01001710000000000002000000000000000800000001<br>00000000545441010000001c00000001000000010001000100000001000105090101000100000009010100<br>In my knowledge, the hostname, which is the location of corba servant, can be in IP address (e.g.172.169.2.3), is encoded in the above stringified IOR. When we use IPv6 address, the format is e.g. 2001:DB8:0:0:8:800:200C:417A and it must be put in '[' and ']' in the corbaloc: corbaloc:iiop:[2001:DB8:0:0:8:800:200C:417A]:2809/NameService.<br><br>My question are: <br>1.. Are the square
parentheses '[' and ']' also encoded and included in the stringified IOR? or what?<br>2. We have some classes in which we can get the hostname of an IOR:<br>class IIOP {<br>public:<br><br> typedef GIOP::Version Version;<br><br> struct Address {<br> _CORBA_String_member host;<br> _CORBA_UShort port;<br><br> void operator>>=(cdrStream&) const;<br> void operator<<=(cdrStream&);<br> };<br><br> struct ProfileBody {<br> Version version;<br> Address address;<br> _CORBA_Unbounded_Sequence_Octet
object_key;<br> IOP::MultipleComponentProfile components;<br><br> ProfileBody() : components(2) {}<br> };<br><br>Does the host of struct Address contain square parentheses?<br><br>Your support is always welcome.<br><br>Best regards,<br>Hung<br><br><br><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="PowerPoint.Slide"><meta name="Generator" content="Microsoft PowerPoint 12">
<br>
</div>
</div><br>
</body></html>