rconcr

RCON protocol implementation

rconcr

Client for the RCON (Remote CONsole) protocol implemented in Crystal.

This Protocol is used to access a remote console on game servers. The implementation has been tested with Minecraft server, but should work with Source-compatible RCON servers as well.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      rconcr:
        github: straight-shoota/rconcr
    
  2. Run shards install

Usage

require "rconcr"

RCON::Client.open(address, host, password) do |client|
  response = client.command "say Hello World from RCON!"
  if response
    RCON.colorize(STDOUT, response)
    puts
  else
    abort "Server closed connection"
  end
end

Development

TODO: Write development instructions here

Contributing

  1. Fork it (https://github.com/your-github-user/rconcr/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

rconcr

Owner
Statistic
  • 3
  • 0
  • 0
  • 3
  • 0
  • over 4 years ago
  • April 4, 2020
License

Apache License 2.0

Links
Synced at

Sun, 22 Dec 2024 08:06:41 GMT

Languages