Top Inners Constructors Methods
jnr.netdb

pack-priv abstract Class NativeProtocolsDB

extends Object
implements ProtocolsDB
Class Inheritance
All Implemented Interfaces
jnr.netdb.ProtocolsDB
Known Direct Subclasses
jnr.netdb.NativeProtocolsDB.DefaultNativeProtocolsDB, jnr.netdb.NativeProtocolsDB.LinuxNativeProtocolsDB
Imports
jnr.ffi.*, .Runtime, jnr.ffi.annotations.Direct, java.util.ArrayList, .Collection, .Collections, .HashMap, .List, .Map, java.util.logging.Level, .Logger

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
public static interface
public static interface
pack-priv static class
private static class
public static class

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public static final NativeProtocolsDB
private static final NativeProtocolsDB
load()

pack-priv static Protocol
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

NativeProtocolsDBback to summary
pack-priv NativeProtocolsDB()

Method Detail

getInstanceback to summary
public static final NativeProtocolsDB getInstance()
loadback to summary
private static final NativeProtocolsDB load()
protocolFromNativeback to summary
pack-priv static Protocol protocolFromNative(NativeProtocolsDB.UnixProtoent p)
jnr.netdb back to summary

pack-priv final Class NativeProtocolsDB.DefaultNativeProtocolsDB

extends NativeProtocolsDB
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final NativeProtocolsDB.LibProto

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public synchronized Collection<Protocol>
public synchronized Protocol
public synchronized Protocol
Inherited from jnr.netdb.NativeProtocolsDB:
getInstanceprotocolFromNative

Field Detail

libback to summary
private final NativeProtocolsDB.LibProto lib

Constructor Detail

DefaultNativeProtocolsDBback to summary
pack-priv DefaultNativeProtocolsDB(NativeProtocolsDB.LibProto lib)

Method Detail

getAllProtocolsback to summary
public synchronized Collection<Protocol> getAllProtocols()

Implements jnr.netdb.ProtocolsDB.getAllProtocols.

getProtocolByNameback to summary
public synchronized Protocol getProtocolByName(String name)

Implements jnr.netdb.ProtocolsDB.getProtocolByName.

getProtocolByNumberback to summary
public synchronized Protocol getProtocolByNumber(Integer proto)

Implements jnr.netdb.ProtocolsDB.getProtocolByNumber.

jnr.netdb back to summary

public Interface NativeProtocolsDB.LibProto

Known Direct Subinterfaces
jnr.netdb.NativeProtocolsDB.LinuxLibProto

Method Summary

Modifier and TypeMethod and Description
public void
public NativeProtocolsDB.UnixProtoent
public NativeProtocolsDB.UnixProtoent
getprotobynumber(int proto)

public NativeProtocolsDB.UnixProtoent
public void
setprotoent(int stayopen)

Method Detail

endprotoentback to summary
public void endprotoent()
getprotobynameback to summary
public NativeProtocolsDB.UnixProtoent getprotobyname(String name)
getprotobynumberback to summary
public NativeProtocolsDB.UnixProtoent getprotobynumber(int proto)
getprotoentback to summary
public NativeProtocolsDB.UnixProtoent getprotoent()
setprotoentback to summary
public void setprotoent(int stayopen)
jnr.netdb back to summary

public Interface NativeProtocolsDB.LinuxLibProto

extends LibProto

Method Summary

Modifier and TypeMethod and Description
public int
public int
getprotobynumber_r(int proto, NativeProtocolsDB.UnixProtoent protoent, Pointer buf, NativeLong buflen, Pointer result)

public int
Inherited from jnr.netdb.NativeProtocolsDB.LibProto:
endprotoentgetprotobynamegetprotobynumbergetprotoentsetprotoent

Method Detail

getprotobyname_rback to summary
public int getprotobyname_r(String proto, NativeProtocolsDB.UnixProtoent protoent, Pointer buf, NativeLong buflen, Pointer result)
getprotobynumber_rback to summary
public int getprotobynumber_r(int proto, NativeProtocolsDB.UnixProtoent protoent, Pointer buf, NativeLong buflen, Pointer result)
getprotoent_rback to summary
public int getprotoent_r(NativeProtocolsDB.UnixProtoent protoent, Pointer buf, NativeLong buflen, Pointer result)
jnr.netdb back to summary

pack-priv final Class NativeProtocolsDB.LinuxNativeProtocolsDB

extends NativeProtocolsDB
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Pointer
private static final int
private final NativeProtocolsDB.LinuxLibProto
private final Runtime

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public synchronized Collection<Protocol>
public synchronized Protocol
public synchronized Protocol
Inherited from jnr.netdb.NativeProtocolsDB:
getInstanceprotocolFromNative

Field Detail

bufback to summary
private final Pointer buf
BUFLENback to summary
private static final int BUFLEN
libback to summary
private final NativeProtocolsDB.LinuxLibProto lib
runtimeback to summary
private final Runtime runtime

Constructor Detail

LinuxNativeProtocolsDBback to summary
pack-priv LinuxNativeProtocolsDB(NativeProtocolsDB.LinuxLibProto lib)

Method Detail

getAllProtocolsback to summary
public synchronized Collection<Protocol> getAllProtocols()

Implements jnr.netdb.ProtocolsDB.getAllProtocols.

getProtocolByNameback to summary
public synchronized Protocol getProtocolByName(String name)

Implements jnr.netdb.ProtocolsDB.getProtocolByName.

getProtocolByNumberback to summary
public synchronized Protocol getProtocolByNumber(Integer number)

Implements jnr.netdb.ProtocolsDB.getProtocolByNumber.

jnr.netdb back to summary

private final Class NativeProtocolsDB.SingletonHolder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final NativeProtocolsDB

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final NativeProtocolsDB INSTANCE

Constructor Detail

SingletonHolderback to summary
private SingletonHolder()
jnr.netdb back to summary

public Class NativeProtocolsDB.UnixProtoent

extends Struct
Class Inheritance

Field Summary

Modifier and TypeField and Description
public final Struct.Pointer
public final Struct.String
public final Struct.Signed32

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from jnr.ffi.Struct:
alignmentarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayBeginarrayEndarrayOffunctiongetMemorygetMemorygetRuntimeinnerinnerisDirectsizesizesizetoStringuseMemory

Field Detail

aliasesback to summary
public final Struct.Pointer aliases
nameback to summary
public final Struct.String name
protoback to summary
public final Struct.Signed32 proto

Constructor Detail

UnixProtoentback to summary
public UnixProtoent(Runtime runtime)