Giter VIP home page Giter VIP logo

rkon-core's People

Contributors

eagleo0 avatar kr5ch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rkon-core's Issues

rcon.command() needs to be called twice?

This may just be an issue I'm having, but here's my setup:

My program has a TextField (calls ActionEvent when Enter is pressed) which contains the following code:

String text = getTextField().getText().trim();
	if (!text.isEmpty()) {
		try {
			System.out.println(rcon.command(text));
		} catch (IOException e1) {
			e1.printStackTrace();
		}
		getTextField().setText("");
	}

I need to input text twice for rcon.command() to work. Well, my initial command isn't printed, then after that all subsequent commands are printed, but behind by one command.

Not works in android

Hi, I get this error while I am using this library in android but in PC it is work
net.kronos.rkon.core.ex.MalformedPacketException: Cannot read the whole packet at net.kronos.rkon.core.RconPacket.read(RconPacket.java:136) at net.kronos.rkon.core.RconPacket.send(RconPacket.java:65) at net.kronos.rkon.core.Rcon.send(Rcon.java:106) at net.kronos.rkon.core.Rcon.command(Rcon.java:99) at ivanzar.servertools.rcon.RconTask.doInBackground(RconTask.java:66) at ivanzar.servertools.rcon.RconTask.doInBackground(RconTask.java:25) at android.os.AsyncTask$2.call(AsyncTask.java:288) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818)

Rcon rcon;

        try {
            rcon = new Rcon(ip, port, pass.getBytes());
        } catch (IOException e) {
            e.printStackTrace();
            err = ERR_UNKNOWN_HOST;
            return;
        } catch (AuthenticationException e) {
            e.printStackTrace();
            err = ERR_UNKNOWN_HOST;
            return;
        }

        try {
            out = rcon.command(cmd);
            err = NO_ERRORS;
        } catch (IOException e) {
            e.printStackTrace();
            err = ERR_IO_EXCEPTION;
            return;
        }

How to fix MalformedPacketException

Hi, i have this problem:

02-05 21:32:46.861 25260-25724/ivanzar.servertools W/System.err: core.ex.MalformedPacketException: Cannot read the whole packet 02-05 21:32:46.861 25260-25724/ivanzar.servertools W/System.err: at core.RconPacket.read(RconPacket.java:136) 02-05 21:32:46.861 25260-25724/ivanzar.servertools W/System.err: at core.RconPacket.send(RconPacket.java:65) 02-05 21:32:46.862 25260-25724/ivanzar.servertools W/System.err: at core.Rcon.send(Rcon.java:106) 02-05 21:32:46.862 25260-25724/ivanzar.servertools W/System.err: at core.Rcon.command(Rcon.java:99) 02-05 21:32:46.862 25260-25724/ivanzar.servertools W/System.err: at ivanzar.servertools.activity.ConsoleActivity$2.doInBackground(ConsoleActivity.java:150) 02-05 21:32:46.862 25260-25724/ivanzar.servertools W/System.err: at ivanzar.servertools.activity.ConsoleActivity$2.doInBackground(ConsoleActivity.java:135) 02-05 21:32:46.862 25260-25724/ivanzar.servertools W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:288) 02-05 21:32:46.862 25260-25724/ivanzar.servertools W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237) 02-05 21:32:46.863 25260-25724/ivanzar.servertools W/System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) 02-05 21:32:46.863 25260-25724/ivanzar.servertools W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 02-05 21:32:46.863 25260-25724/ivanzar.servertools W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 02-05 21:32:46.864 25260-25724/ivanzar.servertools W/System.err: at java.lang.Thread.run(Thread.java:818)

Licence?

Whats about a licence?
I would use your code in my product but I cant provice any changes back.
Because I'm going to split your project.
Am I allowed to copy & paste your code and use it as mine or do you want to be called?

Code stops working mid process without errors.

Hello. Today I was trying to implement your code to my application and the code didn't work and it didn't throw any errors as well. I tried to track down the exact spot where the code stopped working and found out that in file RconPocket.java at line 113 it just stops and does nothing. I tried to fix it myself but couldn't really do it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.