FAQ contains incorrect code?

in Help Center
I looked at the FAQ: "How can a server get the IP address of the caller"
I'm using the latest 3.4. Here is what it lists:
> Ice::ConnectionInfo info = c.con->getInfo();
getInfo() does not return Ice::ConnectionInfo ?
> Ice::TCPConnectionInfo tcpInfo =
> Ice::TCPConnectionInfo::dynamicCast(c.con);
There is no TCPConnectionInfo and no dynamicCast?
if(ipInfo)
{
...
Where is ipInfo defined?
Please explain what I'm missing.
Thanks,
-Oliver
I'm using the latest 3.4. Here is what it lists:
> Ice::ConnectionInfo info = c.con->getInfo();
getInfo() does not return Ice::ConnectionInfo ?
> Ice::TCPConnectionInfo tcpInfo =
> Ice::TCPConnectionInfo::dynamicCast(c.con);
There is no TCPConnectionInfo and no dynamicCast?
if(ipInfo)
{
...
Where is ipInfo defined?
Please explain what I'm missing.
Thanks,
-Oliver
0
Comments
Welcome to the forum!
There are a few bugs in that example code, thanks for bringing this to our attention. I've fixed the FAQ, and here's what the code should have been: I've verified that this compiles.
Let us know if you still have questions.
Regards,
Mark