com.sun.squawk.platform.windows.natives
Class NetDBImpl
java.lang.Object
com.sun.squawk.platform.windows.natives.NetDBImpl
- All Implemented Interfaces:
- Library, NetDB
public class NetDBImpl
- extends Object
- implements NetDB
Nested classes/interfaces inherited from interface com.sun.squawk.platform.windows.natives.NetDB |
NetDB.hostent |
Fields inherited from interface com.sun.squawk.platform.windows.natives.NetDB |
INSTANCE |
Method Summary |
NetDB.hostent |
gethostbyname(String arg0)
The gethostbyname() function returns a HostEnt structure describing an internet host referenced by name. |
int |
h_errno()
Return error code for last call to gethostbyname() or gethostbyaddr(). |
int |
initConstInt(int index)
|
HOST_NOT_FOUND
public static final int HOST_NOT_FOUND
- See Also:
- Constant Field Values
TRY_AGAIN
public static final int TRY_AGAIN
- See Also:
- Constant Field Values
NO_RECOVERY
public static final int NO_RECOVERY
- See Also:
- Constant Field Values
NO_DATA
public static final int NO_DATA
- See Also:
- Constant Field Values
NetDBImpl
public NetDBImpl()
initConstInt
public int initConstInt(int index)
- Specified by:
initConstInt
in interface Library
h_errno
public int h_errno()
- Description copied from interface:
NetDB
- Return error code for last call to gethostbyname() or gethostbyaddr().
- Specified by:
h_errno
in interface NetDB
- Returns:
- one of the error codes defined in this class.
gethostbyname
public NetDB.hostent gethostbyname(String arg0)
- Description copied from interface:
NetDB
- The gethostbyname() function returns a HostEnt structure describing an internet host referenced by name.
- Specified by:
gethostbyname
in interface NetDB
- Parameters:
arg0
- the host name
- Returns:
- the address of struct hostent, or null on error
"For updated information see the Java FRC site"