|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NetDB
java wrapper around #include
Nested Class Summary | |
---|---|
static class |
NetDB.hostent
C STRUCTURE HostEnt struct hostent { char *h_name; official name of host char **h_aliases; alias list int h_addrtype; host address type int h_length; length of address char **h_addr_list; list of addresses from name server }; #define h_addr h_addr_list[0] address, for backward compatibility |
Field Summary | |
---|---|
static int |
HOST_NOT_FOUND
Authoritative Answer Host not found. |
static NetDB |
INSTANCE
|
static int |
NO_DATA
Valid name, no data record of requested type. |
static int |
NO_RECOVERY
Non recoverable errors, FORMERR, REFUSED, NOTIMP. |
static int |
TRY_AGAIN
Non-Authoritative Host not found, or SERVERFAIL. |
Method Summary | |
---|---|
NetDB.hostent |
gethostbyname(String name)
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(). |
Methods inherited from interface com.sun.cldc.jna.Library |
---|
initConstInt |
Field Detail |
---|
static final NetDB INSTANCE
static final int HOST_NOT_FOUND
h_errno()
,
Constant Field Valuesstatic final int TRY_AGAIN
h_errno()
,
Constant Field Valuesstatic final int NO_RECOVERY
h_errno()
,
Constant Field Valuesstatic final int NO_DATA
h_errno()
,
Constant Field ValuesMethod Detail |
---|
NetDB.hostent gethostbyname(String name)
name
- the host name
int h_errno()
|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |