|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.snmp2.TcpTransportImpl
public class TcpTransportImpl
Implemention of the SnmpTransportProvider interface for TCP/IP protocol.
| Constructor Summary | |
|---|---|
TcpTransportImpl()
Default constructor that creates an instance of the implementation object. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the transport interface after communication is over. |
void |
open(ProtocolOptions params)
Opens the transport interface over which the data is sent/received. |
int |
read(SnmpTransportPacket transportPacket)
Receive data from the peer over the transport interface. |
void |
write(SnmpTransportPacket tPacket)
Send 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 |
|---|
public TcpTransportImpl()
| Method Detail |
|---|
public void open(ProtocolOptions params)
throws java.io.IOException
open in interface SnmpTransportProvidertpacket - SnmpTransportPacket that contains the protocol parameters
and bytes to send.
java.io.IOException - in case of an error during opening the
transport interface.
public int read(SnmpTransportPacket transportPacket)
throws java.io.IOException
read in interface SnmpTransportProviderbuf - Buffer in which the bytes are read into.
java.io.IOException - in case of an error during receive.
public void write(SnmpTransportPacket tPacket)
throws java.io.IOException
write in interface SnmpTransportProvidertpacket - SnmpTransportPacket that contains the protocol parameters
and bytes to send.
java.io.IOException - in case of an error during send.
public void close()
throws java.io.IOException
close in interface SnmpTransportProviderjava.io.IOException - in case of an error during closing.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||