else if(transport instanceof BasicTCP) {
List<Short> ports=ResourceManager.getNextTcpPorts(bind_addr, num);
transport.setBindPort(ports.get(0));
transport.setPortRange(num);
Protocol ping=stack.findProtocol(TCPPING.class);
if(ping == null)
throw new IllegalStateException("TCP stack must consist of TCP:TCPPING - other config are not supported");
List<String> initial_hosts=new LinkedList<String>();
for(short port: ports) {