Updated version

connection_type_change
Robinson 2021-05-02 22:36:50 +02:00
parent 4973e08ff7
commit 17735da8ed
21 changed files with 22 additions and 22 deletions

View File

@ -21,7 +21,7 @@ Maven Info
<dependency>
<groupId>com.dorkbox</groupId>
<artifactId>NetworkUtils</artifactId>
<version>2.7</version>
<version>2.8</version>
</dependency>
</dependencies>
```
@ -30,7 +30,7 @@ Gradle Info
```
dependencies {
...
implementation("com.dorkbox:NetworkUtils:2.7")
implementation("com.dorkbox:NetworkUtils:2.8")
}
```

View File

@ -39,7 +39,7 @@ object Extras {
// set for the project
const val description = "Utilities for managing network configurations, IP/MAC address conversion, and ping (via OS native commands)"
const val group = "com.dorkbox"
const val version = "2.7"
const val version = "2.8"
// set as project.ext
const val name = "NetworkUtils"

View File

@ -7,7 +7,7 @@ object Arp {
/**
* Gets the version number.
*/
const val version = "2.7"
const val version = "2.8"
// Now setup ARP Proxy for this interface (so ARP requests are answered correctly)
fun proxyAdd(interfaceName: String) {

View File

@ -15,7 +15,7 @@ internal object Common {
/**
* Gets the version number.
*/
const val version = "2.7"
const val version = "2.8"
val OS_LINUX: Boolean
val OS_WINDOWS: Boolean

View File

@ -10,7 +10,7 @@ object Dhcp {
/**
* Gets the version number.
*/
const val version = "2.7"
const val version = "2.8"
fun start(id: String, interfaceName: String) {
if (Common.OS_LINUX) {

View File

@ -18,7 +18,7 @@ object Dns {
/**
* Gets the version number.
*/
const val version = "2.7"
const val version = "2.8"
const val DEFAULT_SEARCH_DOMAIN = ""

View File

@ -20,7 +20,7 @@ object IP {
/**
* Gets the version number.
*/
const val version = "2.7"
const val version = "2.8"
/**
* The [InetAddress] that represents the loopback address. If IPv6 stack is available, it will refer to

View File

@ -10,7 +10,7 @@ object IPRoute {
/**
* Gets the version number.
*/
const val version = "2.7"
const val version = "2.8"
private val reservedTable = StringBuilder(2048)
private val tableNames: MutableMap<Int, String?> = HashMap(256)

View File

@ -38,7 +38,7 @@ object IPv4 {
/**
* Gets the version number.
*/
const val version = "2.7"
const val version = "2.8"
/**
* Returns `true` if IPv4 should be used even if the system supports both IPv4 and IPv6. Setting this

View File

@ -33,7 +33,7 @@ object IPv6 {
/**
* Gets the version number.
*/
const val version = "2.7"
const val version = "2.8"
// used for subnet mask info
private val MINUS_ONE = BigInteger.valueOf(-1)

View File

@ -9,7 +9,7 @@ object IfConfig {
/**
* Gets the version number.
*/
const val version = "2.7"
const val version = "2.8"
fun assignMac(interfaceName: String, interfaceMac: String) {
if (Common.OS_LINUX) {

View File

@ -9,7 +9,7 @@ object Iface {
/**
* Gets the version number.
*/
const val version = "2.7"
const val version = "2.8"
private val ifToIp: MutableMap<String, String> = HashMap()

View File

@ -24,7 +24,7 @@ object Inet4 {
/**
* Gets the version number.
*/
const val version = "2.7"
const val version = "2.8"
/**
* Returns the [Inet4Address] representation of a [String] IP or host address.

View File

@ -24,7 +24,7 @@ object Inet6 {
/**
* Gets the version number.
*/
const val version = "2.7"
const val version = "2.8"
/**
* Returns the [Inet6Address] representation of a [String] IP or host address.

View File

@ -19,7 +19,7 @@ object Mac {
/**
* Gets the version number.
*/
const val version = "2.7"
const val version = "2.8"
enum class MacDelimiter(val delimiter: String) {
COLON(":"),

View File

@ -10,7 +10,7 @@ object NameSpace {
/**
* Gets the version number.
*/
const val version = "2.7"
const val version = "2.8"
object Route {
fun flush(nameSpace: String) {

View File

@ -9,7 +9,7 @@ object Route {
/**
* Gets the version number.
*/
const val version = "2.7"
const val version = "2.8"
fun flush() {
Executor.run("/sbin/ip", "route", "flush", "cache")

View File

@ -20,7 +20,7 @@ object Sntp {
/**
* Gets the version number.
*/
const val version = "2.7"
const val version = "2.8"
/**
* SNTP client for retrieving time.

View File

@ -37,7 +37,7 @@ object SocketUtils {
/**
* Gets the version number.
*/
const val version = "2.7"
const val version = "2.8"
private val EMPTY = Collections.enumeration(emptyList<Any>())

View File

@ -9,7 +9,7 @@ object VirtualEth {
/**
* Gets the version number.
*/
const val version = "2.7"
const val version = "2.8"
fun add(host: String, guest: String) {
if (Common.OS_LINUX) {

View File

@ -16,7 +16,7 @@ class Ping {
/**
* Gets the version number.
*/
const val version = "2.7"
const val version = "2.8"
}
private val count = 4