com.adventnet.snmp.snmp2
Class  TcpProtocolOptionsImpl
java.lang.Object
  |
  +--com.adventnet.snmp.snmp2.TcpProtocolOptionsImpl
- All Implemented Interfaces: 
 - ProtocolOptions
 
- public class TcpProtocolOptionsImpl
- extends java.lang.Object
- implements ProtocolOptions
   
Implemention of the ProtocolOptions interface for TCP/IP protocol.
| 
Constructor Summary | 
TcpProtocolOptionsImpl(java.lang.String remoteHost,
                       int remotePort,
                       int localPort)
 
          Constructor that creates the TcpProtocolOptionsImpl object. | 
 
| 
Method Summary | 
 java.lang.String | 
getLocalAddress()
 
          Get the local address configured. | 
 int | 
getLocalPort()
 
          Get the local port configured. | 
 java.lang.String | 
getRemoteHost()
 
          Get the remote host with which this SNMP entity will communicate. | 
 int | 
getRemotePort()
 
          Get the remote port with which this SNMP entity will communicate. | 
 java.lang.String | 
getSessionId()
 
          Get a unique session id that is associated with each SNMP session
 initiated from this SNMP entity. | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
TcpProtocolOptionsImpl
public TcpProtocolOptionsImpl(java.lang.String remoteHost,
                              int remotePort,
                              int localPort)
- Constructor that creates the TcpProtocolOptionsImpl object.
 
getRemoteHost
public java.lang.String getRemoteHost()
- Get the remote host with which this SNMP entity will communicate.
 
 
getRemotePort
public int getRemotePort()
- Get the remote port with which this SNMP entity will communicate.
 
 
getLocalPort
public int getLocalPort()
- Get the local port configured.
 
 
getLocalAddress
public java.lang.String getLocalAddress()
- Get the local address configured.
 
 
getSessionId
public java.lang.String getSessionId()
- Get a unique session id that is associated with each SNMP session
 initiated from this SNMP entity. This is used by the SNMP v3 module.
 For example, this can even be a combination of the host and port.
- Specified by: 
 getSessionId in interface ProtocolOptions
 
 
Copyright (c)AdventNet Inc., 1996-2004