1 20 21 22 23 package org.snmp4j; 24 25 import java.io.IOException ; 26 import org.snmp4j.smi.Address; 27 import org.snmp4j.transport.TransportListener; 28 29 37 public interface TransportMapping { 38 39 45 Class getSupportedAddressClass(); 46 47 56 Address getListenAddress(); 57 58 66 void sendMessage(Address address, byte[] message) throws IOException ; 67 68 81 void addMessageDispatcher(MessageDispatcher dispatcher); 82 83 92 void removeMessageDispatcher(MessageDispatcher dispatcher); 93 94 101 void addTransportListener(TransportListener transportListener); 102 103 110 void removeTransportListener(TransportListener transportListener); 111 112 116 void close() throws IOException ; 117 118 124 void listen() throws IOException ; 125 126 135 boolean isListening(); 136 137 143 int getMaxInboundMessageSize(); 144 } 145 146 | Popular Tags |