From d6a60a6c9938d76da7b9a395f4bac0859d8bb294 Mon Sep 17 00:00:00 2001 From: Job Date: Sat, 17 Apr 2021 16:50:59 +0200 Subject: [PATCH 1/4] Made some stuff better --- src/main/java/nl/vv32/rcon/Rcon.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/nl/vv32/rcon/Rcon.java b/src/main/java/nl/vv32/rcon/Rcon.java index bf0abae..acfeae9 100644 --- a/src/main/java/nl/vv32/rcon/Rcon.java +++ b/src/main/java/nl/vv32/rcon/Rcon.java @@ -13,8 +13,8 @@ public class Rcon implements Closeable { final private PacketReader reader; final private PacketWriter writer; - private boolean closed = false; - private int requestCounter; + private volatile boolean closed = false; + private volatile int requestCounter; Rcon(final ByteChannel channel, final int readBufferCapacity, final int writeBufferCapacity) { this.channel = channel; From aa515b75cdacdf3be24c32407c68e2d87c57132a Mon Sep 17 00:00:00 2001 From: Job Date: Sat, 17 Apr 2021 16:51:28 +0200 Subject: [PATCH 2/4] Made some more stuff better --- src/main/java/nl/vv32/rcon/Rcon.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/nl/vv32/rcon/Rcon.java b/src/main/java/nl/vv32/rcon/Rcon.java index acfeae9..8b66cc7 100644 --- a/src/main/java/nl/vv32/rcon/Rcon.java +++ b/src/main/java/nl/vv32/rcon/Rcon.java @@ -16,7 +16,7 @@ public class Rcon implements Closeable { private volatile boolean closed = false; private volatile int requestCounter; - Rcon(final ByteChannel channel, final int readBufferCapacity, final int writeBufferCapacity) { + public Rcon(final ByteChannel channel, final int readBufferCapacity, final int writeBufferCapacity) { this.channel = channel; reader = new PacketReader(channel::read, readBufferCapacity); From a3475c6fb487ed428f92a47302cef6f89f2fa4f2 Mon Sep 17 00:00:00 2001 From: Job Date: Sat, 17 Apr 2021 16:56:56 +0200 Subject: [PATCH 3/4] Actually no --- src/main/java/nl/vv32/rcon/Rcon.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/nl/vv32/rcon/Rcon.java b/src/main/java/nl/vv32/rcon/Rcon.java index 8b66cc7..acfeae9 100644 --- a/src/main/java/nl/vv32/rcon/Rcon.java +++ b/src/main/java/nl/vv32/rcon/Rcon.java @@ -16,7 +16,7 @@ public class Rcon implements Closeable { private volatile boolean closed = false; private volatile int requestCounter; - public Rcon(final ByteChannel channel, final int readBufferCapacity, final int writeBufferCapacity) { + Rcon(final ByteChannel channel, final int readBufferCapacity, final int writeBufferCapacity) { this.channel = channel; reader = new PacketReader(channel::read, readBufferCapacity); From 97bcc569a58896ce1975843b64dba36ba6dda76a Mon Sep 17 00:00:00 2001 From: Job Date: Sat, 17 Apr 2021 17:05:53 +0200 Subject: [PATCH 4/4] Better description. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d2a1df5..93c65c4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # RCON [![Java CI](https://github.com/jobfeikens/rcon/actions/workflows/workflow.yml/badge.svg)](https://github.com/jobfeikens/rcon/actions/workflows/workflow.yml) -Java implementation of the RCON protocol +Minimal implementation of the RCON protocol in Java. ## Example (Java 8+) ```java