All Downloads are FREE. Search and download functionalities are using the official Maven repository.

es.tid.pce.client.PCEPClient Maven / Gradle / Ivy

The newest version!
package es.tid.pce.client;

import java.util.Vector;

import es.tid.pce.pcepsession.PCEPSessionsInformation;

public class PCEPClient {
	
	private Vector sesiones; 
	@SuppressWarnings("unused")
	private int sessionIdCounter;

	public PCEPClient(){
		sessionIdCounter=0;
		sesiones=new Vector();
	}
	public void addPCE(String ip_pce, int port_pce){
		PCCPCEPSession PCEsession = new PCCPCEPSession(ip_pce, port_pce,false, new PCEPSessionsInformation());
		sesiones.add(PCEsession);
		//PCEsession.open();
	}
	
	
	public void getRoute(){
		
	}
	
//	public PCCConnect getPCCConnect(){
//		
//		return PCESessions.elementAt(0);
//	}
	
//	private int getNewSessionId(){
//		sessionIdCounter=sessionIdCounter+1;
//		if (sessionIdCounter>100000){
//			sessionIdCounter=1;
//		}
//		return sessionIdCounter;
//	}
//	
		

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy