Package org.snmp4j.transport

Examples of org.snmp4j.transport.ConnectionOrientedTransportMapping


    }
*/
    TransportMapping transport =
          TransportMappings.getInstance().createTransportMapping(localAddress);
    if (transport instanceof ConnectionOrientedTransportMapping) {
      ConnectionOrientedTransportMapping tcpTransport =
          (ConnectionOrientedTransportMapping)transport;
      tcpTransport.setConnectionTimeout(0);
      tcpTransport.setMessageLengthDecoder(new AgentXProtocol());
    }
    agentX.addTransportMapping(transport);
    transport.listen();
    return transport;
  }
View Full Code Here


  }

  public void addAgentXTransportMapping(TransportMapping transport) {
    agentX.getMessageDispatcher().addTransportMapping(transport);
    if (transport instanceof ConnectionOrientedTransportMapping) {
      ConnectionOrientedTransportMapping cotm =
          (ConnectionOrientedTransportMapping)transport;
      cotm.addTransportStateListener(this);
      cotm.setConnectionTimeout(0);
      cotm.setMessageLengthDecoder(new AgentXProtocol());
    }
  }
View Full Code Here

  }

  public void removeAgentXTransportMapping(TransportMapping transport) {
    agentX.getMessageDispatcher().removeTransportMapping(transport);
    if (transport instanceof ConnectionOrientedTransportMapping) {
      ConnectionOrientedTransportMapping cotm =
          (ConnectionOrientedTransportMapping)transport;
      cotm.removeTransportStateListener(this);
    }
  }
View Full Code Here

TOP

Related Classes of org.snmp4j.transport.ConnectionOrientedTransportMapping

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.