|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jnetpcap.PcapSockAddr
public class PcapSockAddr
Class peered with native struct sockaddr
structure. The class
contains the same fields of the counter part C structure. In jNetPcap library
its fields are initialized within the native library and returned to java
space. The class is readonly, and only provides getter methods.
Field Summary | |
---|---|
static int |
AF_INET
Socket family internet version 4 |
static int |
AF_INET6
Socket family internet version 6 |
Constructor Summary | |
---|---|
PcapSockAddr()
|
Method Summary | |
---|---|
byte[] |
getData()
Gets protocol family specifiy array of bytes which contain the protocol's address. |
short |
getFamily()
Gets the socket's protocol family identifier. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int AF_INET
public static final int AF_INET6
Constructor Detail |
---|
public PcapSockAddr()
Method Detail |
---|
public final short getFamily()
public final byte[] getData()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |