"

2013 FRC Java API

"

com.sun.squawk.platform.windows.natives
Class NetDBImpl

java.lang.Object
  extended by com.sun.squawk.platform.windows.natives.NetDBImpl
All Implemented Interfaces:
Library, NetDB

public class NetDBImpl
extends Object
implements NetDB


Nested Class Summary
static class NetDBImpl.hostentImpl
           
 
Nested classes/interfaces inherited from interface com.sun.squawk.platform.windows.natives.NetDB
NetDB.hostent
 
Field Summary
static int HOST_NOT_FOUND
           
static int NO_DATA
           
static int NO_RECOVERY
           
static int TRY_AGAIN
           
 
Fields inherited from interface com.sun.squawk.platform.windows.natives.NetDB
INSTANCE
 
Constructor Summary
NetDBImpl()
           
 
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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

NetDBImpl

public NetDBImpl()
Method Detail

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

"

2013 FRC Java API

"

"
For updated information see the Java FRC site
"