|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.snmp2.agent.AgentTcpTransportImpl
public class AgentTcpTransportImpl
Implemention of the SnmpTransportProvider interface for TCP/IP protocol.
| Field Summary | |
|---|---|
(package private) static java.util.Hashtable |
ht
|
(package private) java.io.InputStream |
is
|
(package private) int |
j
|
(package private) java.net.Socket |
lastAccessedSocket
|
(package private) static java.net.Socket |
localSocket
|
(package private) static AgentTcpReceiver |
serverImpl
|
| Constructor Summary | |
|---|---|
AgentTcpTransportImpl()
Default constructor that creates an instance of the implementation object. |
|
| Method Summary | |
|---|---|
(package private) static void |
addToSocketList(java.net.Socket socket)
|
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 |
| Field Detail |
|---|
java.io.InputStream is
int j
static java.net.Socket localSocket
java.net.Socket lastAccessedSocket
static AgentTcpReceiver serverImpl
static java.util.Hashtable ht
| Constructor Detail |
|---|
public AgentTcpTransportImpl()
| Method Detail |
|---|
public void open(ProtocolOptions params)
throws java.io.IOException
open in interface SnmpTransportProviderparams - 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 SnmpTransportProvidertransportPacket - The Snmp Transport Packet from which data is to
be Read.
java.io.IOException - in case of an error during reading.
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 - on error while closing.static void addToSocketList(java.net.Socket socket)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||