Discussion:
[omniORB] Can an IPV6 socket accept connection from an ipv4-only client through omniORB?
jt
2012-06-11 09:31:24 UTC
Permalink
Hi,
I'm using omniORB 4.1.3. The server side is on the Linux platform and listens on a IPV6 socket. The client is on the Windows XP platform that does not install IPV6 protocol statck. Now I wonder if the client can connect the server throuhg omniORB or not.

I have tested but it failed. The client failed when calling ORB_init. My codes are as below:

std::string InitRef = "NameService=corbaname::[3ffe:100::b]:15000";
std::string clientTransportRule = "3ffe:100::b ssl,tcp"; // If chang it to "[3ffe:100::b] ssl,tcp", exception will also be thrown
clientTransportRule += " ssl,tcp";
const char* options[][2] = {{ "InitRef", 0},{"clientTransportRule", 0}, {"giopMaxMsgSize", "64000000"}, {"sslVerifyMode", "none"},{0, 0}};
options[0][1] = InitRef.c_str();
options[1][1] = clientTransportRule.c_str();
m_ptrORB = CORBA::ORB_init(argc, 0, "omniORB4", options); //it will throw exception


Is there any way to implement it? Thanks a lot!



2012-6-11
jiang.tao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20120611/1928d2d4/attachment.htm
Duncan Grisby
2012-06-15 16:48:02 UTC
Permalink
Post by jt
I'm using omniORB 4.1.3. The server side is on the Linux platform and
listens on a IPV6 socket. The client is on the Windows XP platform
that does not install IPV6 protocol statck. Now I wonder if the client
can connect the server throuhg omniORB or not.
I have tested but it failed. The client failed when calling ORB_init.
std::string InitRef = "NameService=corbaname::[3ffe:100::b]:15000";
If the client does not have IPv6 support, you cannot possibly use it to
communicate to an IPv6 address!

If the server has IPv4 addresses as well as an IPv6 one, then the client
should be able to connect to it with IPv4.

Cheers,

Duncan.
--
-- Duncan Grisby --
-- ***@grisby.org --
-- http://www.grisby.org --
Loading...