|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.snmp2.UDPTransportImpl
class UDPTransportImpl
| Constructor Summary | |
|---|---|
UDPTransportImpl()
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the transport interface after communication is over. |
(package private) int |
getReceiveBufferSize()
|
void |
open(ProtocolOptions opt)
Opens the transport interface over which the data is sent/received. |
int |
read(SnmpTransportPacket buf)
Receive data from the peer over the transport interface. |
(package private) void |
setReceiveBufferSize(int size)
|
void |
write(SnmpTransportPacket buf)
Sends data to the peer over the transport interface. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
UDPTransportImpl()
| Method Detail |
|---|
int getReceiveBufferSize()
throws java.net.SocketException
java.net.SocketException
void setReceiveBufferSize(int size)
throws java.lang.IllegalArgumentException,
java.net.SocketException
java.lang.IllegalArgumentException
java.net.SocketException
public void open(ProtocolOptions opt)
throws java.io.IOException
SnmpTransportProvider
open in interface SnmpTransportProvideropt - protocol options required for opening the SNMP session.
java.io.IOException - in case of an error during opening the
transport interface.
public void close()
throws java.io.IOException
SnmpTransportProvider
close in interface SnmpTransportProviderjava.io.IOException - in case of an error during closing.
public int read(SnmpTransportPacket buf)
throws java.io.IOException
SnmpTransportProvider
read in interface SnmpTransportProviderbuf - Transport packet containing the packet buffer in which the
bytes will be read.
java.io.IOException - in case of an error occurs while receiving.
public void write(SnmpTransportPacket buf)
throws java.io.IOException
SnmpTransportProvider
write in interface SnmpTransportProviderbuf - the transport packet that contains the destination information
and the SNMP message to be sent.
java.io.IOException - in case of an error during sending.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||