port = -1;
}
else if (connHandler instanceof SNMPConnectionHandlerCfg)
{
protocol = ConnectionHandlerDescriptor.Protocol.SNMP;
SNMPConnectionHandlerCfg snmp = (SNMPConnectionHandlerCfg)connHandler;
SortedSet<InetAddress> v = snmp.getListenAddress();
if (v != null)
{
addresses.addAll(v);
}
port = snmp.getListenPort();
}
else
{
protocol = ConnectionHandlerDescriptor.Protocol.OTHER;
port = -1;