synchronized void openTrapSocketIfNeeded() throws SocketException {
  if (trapSocket == null) {
    trapSocket=new DatagramSocket(0,address);
    if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINER)) {
      SNMP_ADAPTOR_LOGGER.logp(Level.FINER,dbgTag,"openTrapSocketIfNeeded","using port " + trapSocket.getLocalPort() + " to send traps");
    }
  }
}

synchronized void openTrapSocketIfNeeded ( ) throws SocketException { if ( trapSocket == null ) { trapSocket = new DatagramSocket ( 0 , address ) ; if ( SNMP_ADAPTOR_LOGGER . isLoggable ( Level . FINER ) ) { SNMP_ADAPTOR_LOGGER . logp ( Level . FINER , dbgTag , "openTrapSocketIfNeeded" , "using port " + trapSocket . getLocalPort ( ) + " to send traps" ) ; } } }
open trapsocket if it ' s not already done .
