|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.adventnet.snmp.sas.ProtocolDataUnit
| Constructor Summary | |
ProtocolDataUnit()
Constructs a ProtocolDataUnit instance with default values. |
|
ProtocolDataUnit(byte[] data,
java.net.InetAddress address,
int remote,
int local)
Constructs a ProtocolDataUnit instance with the given values. |
|
| Method Summary | |
byte[] |
getData()
The data that is associated with this instance. |
java.lang.String |
getHostAddress()
Gets the remoteAddress of this ProtocolDataUnit. |
int |
getLocalPort()
Returns the localPort of this ProtocolDataUnit. |
java.net.InetAddress |
getRemoteAddress()
Returns the remoteAddress of this ProtocolDataUnit. |
int |
getRemotePort()
Returns the remotePort of this ProtocolDataUnit. |
void |
setData(byte[] data)
Sets the data on this ProtocolDataUnit. |
void |
setHostAddress(java.lang.String hostAddr)
Sets the remoteAddress on this ProtocolDataUnit. |
void |
setLocalPort(int port)
Sets the localPort on this ProtocolDataUnit. |
void |
setRemoteAddress(java.net.InetAddress addr)
Sets the remoteAddress on this ProtocolDataUnit. |
void |
setRemotePort(int port)
Sets the remotePort on this ProtocolDataUnit. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ProtocolDataUnit()
public ProtocolDataUnit(byte[] data,
java.net.InetAddress address,
int remote,
int local)
data - The data that needs to be associated with this instance.address - The remote address associated with this instance.remote - The remotePort associated with this instance.local - The localPort associated with this instance.| Method Detail |
public byte[] getData()
public void setData(byte[] data)
data - The data to be set.public java.net.InetAddress getRemoteAddress()
public void setRemoteAddress(java.net.InetAddress addr)
addr - The remoteAddress to be set.public int getRemotePort()
public void setRemotePort(int port)
port - The remotePort to be set.public int getLocalPort()
public void setLocalPort(int port)
port - The localPort to be set.public java.lang.String getHostAddress()
public void setHostAddress(java.lang.String hostAddr)
hostAddr - The remoteAddress to be set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||