Package org.opennms.jicmp.jna
Class sockaddr_in
- java.lang.Object
-
- com.sun.jna.Structure
-
- org.opennms.jicmp.jna.sockaddr_in
-
public class sockaddr_in extends com.sun.jna.Structure
-
-
Field Summary
Fields Modifier and Type Field Description byte[]
sin_addr
short
sin_family
byte[]
sin_port
byte[]
sin_zero
-
Constructor Summary
Constructors Constructor Description sockaddr_in()
sockaddr_in(int port)
sockaddr_in(int family, byte[] addr, byte[] port)
sockaddr_in(java.net.InetAddress address, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.InetAddress
getAddress()
protected java.util.List<java.lang.String>
getFieldOrder()
int
getPort()
void
setAddress(java.net.InetAddress address)
void
setPort(int port)
-
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
-
-
-
Method Detail
-
getFieldOrder
protected java.util.List<java.lang.String> getFieldOrder()
- Specified by:
getFieldOrder
in classcom.sun.jna.Structure
-
getAddress
public java.net.InetAddress getAddress()
-
setAddress
public void setAddress(java.net.InetAddress address)
-
getPort
public int getPort()
-
setPort
public void setPort(int port)
-
-