Package jnr.netdb
Class NativeServicesDB.LinuxServicesDB
java.lang.Object
jnr.netdb.NativeServicesDB
jnr.netdb.NativeServicesDB.LinuxServicesDB
- All Implemented Interfaces:
ServicesDB
- Enclosing class:
NativeServicesDB
-
Nested Class Summary
Nested classes/interfaces inherited from class jnr.netdb.NativeServicesDB
NativeServicesDB.DefaultNativeServicesDB, NativeServicesDB.LibServices, NativeServicesDB.LinuxLibServices, NativeServicesDB.LinuxServent, NativeServicesDB.LinuxServicesDB, NativeServicesDB.UnixServent
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final jnr.ffi.Pointer
private static final int
private final NativeServicesDB.LinuxLibServices
private final jnr.ffi.Runtime
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetServiceByName
(String name, String proto) getServiceByPort
(Integer port, String proto) Methods inherited from class jnr.netdb.NativeServicesDB
getInstance, htons, load, ntohs, serviceFromNative
-
Field Details
-
BUFLEN
private static final int BUFLEN- See Also:
-
lib
-
runtime
private final jnr.ffi.Runtime runtime -
buf
private final jnr.ffi.Pointer buf
-
-
Constructor Details
-
LinuxServicesDB
LinuxServicesDB(NativeServicesDB.LibServices lib)
-
-
Method Details
-
getServiceByName
-
getServiceByPort
-
getAllServices
-