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

examples.Example Maven / Gradle / Ivy

There is a newer version: 3.0.8
Show newest version
package examples;

import javax.net.SocketFactory;
import me.legrange.mikrotik.ApiConnection;

/**
 *
 * @author gideon
 */
 abstract class Example {
     
    protected void connect() throws Exception {
        con = ApiConnection.connect(SocketFactory.getDefault(), Config.HOST, ApiConnection.DEFAULT_PORT, 2000);
        con.login(Config.USERNAME, Config.PASSWORD);
    }

    protected void disconnect() throws Exception {
        con.close();
    }
    
    protected ApiConnection con;
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy