Skip to main content

Support for ECN-1156 "InetAddress.getLocalHost clarification" in RI

5 replies [Last post]
steve_wadsworth
Offline
Joined: 2010-07-14

ECN-1156 "InetAddress.getLocalHost clarification" does not appear to be supported in RI Rel C.
Is this true? If so, why not?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
suntec
Offline
Joined: 2010-10-13

I could find some description in mpeos_socketGetHostByName() as you explained.

* If name is identical to the local host name as returned by mpeos_socketGetHostName() ,
* the returned mpe_SocketHostEntry structure shall contain a single address only. That
* address must identify the OCAP1.0 return channel or DOCSIS interface.

But, it does not seem to implement to check if the given name equals to the return name by mpeos_socketGetHostName() or not.

In mpeos_socketGetHostByName(), it just call OS API to resolve the given name by hosts file or DNS query.

If I add some code to check and return the address of OCAP return channel in RI simulator, is it the value of "RI.Platform.IpAddr" ?

Message was edited by: suntec

greg80303
Offline
Joined: 2008-07-03

Agreed -- our PC Platform does not really have a concept of a return channel IP at this time. I will file an internal issue to finish out the implementation so that the MPEOS calls will return the RI.Platform.IpAddr value. Thanks.

G

greg80303
Offline
Joined: 2008-07-03

It is supported. See the API documentation for mpeos_socketGetHostByName() in $OCAPROOT/mpe/os/include/mpeos_socket.h. Your JVM must ensure that it calls this API properly when implementing InetAddress.getLocalHost().

G

greg80303
Offline
Joined: 2008-07-03

If your JVM happens to be ported directly to your target platform rather than to MPE, then the JVM must acquire the OCAP or DOCSIS return channel IP through some proprietary communication with the platform.

G

steve_wadsworth
Offline
Joined: 2010-07-14

Thank you.
I shall investigate further.