97 lines
2.7 KiB
Java
97 lines
2.7 KiB
Java
/* ----------------------------------------------------------------------------
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
* Version 4.0.1
|
|
*
|
|
* Do not make changes to this file unless you know what you are doing--modify
|
|
* the SWIG interface file instead.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
package com.frostwire.jlibtorrent.swig;
|
|
|
|
public class ip_route {
|
|
private transient long swigCPtr;
|
|
protected transient boolean swigCMemOwn;
|
|
|
|
protected ip_route(long cPtr, boolean cMemoryOwn) {
|
|
swigCMemOwn = cMemoryOwn;
|
|
swigCPtr = cPtr;
|
|
}
|
|
|
|
protected static long getCPtr(ip_route obj) {
|
|
return (obj == null) ? 0 : obj.swigCPtr;
|
|
}
|
|
|
|
@SuppressWarnings("deprecation")
|
|
protected void finalize() {
|
|
delete();
|
|
}
|
|
|
|
public synchronized void delete() {
|
|
if (swigCPtr != 0) {
|
|
if (swigCMemOwn) {
|
|
swigCMemOwn = false;
|
|
libtorrent_jni.delete_ip_route(swigCPtr);
|
|
}
|
|
swigCPtr = 0;
|
|
}
|
|
}
|
|
|
|
public void setDestination(address value) {
|
|
libtorrent_jni.ip_route_destination_set(swigCPtr, this, address.getCPtr(value), value);
|
|
}
|
|
|
|
public address getDestination() {
|
|
long cPtr = libtorrent_jni.ip_route_destination_get(swigCPtr, this);
|
|
return (cPtr == 0) ? null : new address(cPtr, false);
|
|
}
|
|
|
|
public void setNetmask(address value) {
|
|
libtorrent_jni.ip_route_netmask_set(swigCPtr, this, address.getCPtr(value), value);
|
|
}
|
|
|
|
public address getNetmask() {
|
|
long cPtr = libtorrent_jni.ip_route_netmask_get(swigCPtr, this);
|
|
return (cPtr == 0) ? null : new address(cPtr, false);
|
|
}
|
|
|
|
public void setGateway(address value) {
|
|
libtorrent_jni.ip_route_gateway_set(swigCPtr, this, address.getCPtr(value), value);
|
|
}
|
|
|
|
public address getGateway() {
|
|
long cPtr = libtorrent_jni.ip_route_gateway_get(swigCPtr, this);
|
|
return (cPtr == 0) ? null : new address(cPtr, false);
|
|
}
|
|
|
|
public void setSource_hint(address value) {
|
|
libtorrent_jni.ip_route_source_hint_set(swigCPtr, this, address.getCPtr(value), value);
|
|
}
|
|
|
|
public address getSource_hint() {
|
|
long cPtr = libtorrent_jni.ip_route_source_hint_get(swigCPtr, this);
|
|
return (cPtr == 0) ? null : new address(cPtr, false);
|
|
}
|
|
|
|
public void setName(byte_vector value) {
|
|
libtorrent_jni.ip_route_name_set(swigCPtr, this, byte_vector.getCPtr(value), value);
|
|
}
|
|
|
|
public byte_vector getName() {
|
|
long cPtr = libtorrent_jni.ip_route_name_get(swigCPtr, this);
|
|
return (cPtr == 0) ? null : new byte_vector(cPtr, false);
|
|
}
|
|
|
|
public void setMtu(int value) {
|
|
libtorrent_jni.ip_route_mtu_set(swigCPtr, this, value);
|
|
}
|
|
|
|
public int getMtu() {
|
|
return libtorrent_jni.ip_route_mtu_get(swigCPtr, this);
|
|
}
|
|
|
|
public ip_route() {
|
|
this(libtorrent_jni.new_ip_route(), true);
|
|
}
|
|
|
|
}
|