Skip to content
/ rcon Public

Package for communicating with Source game servers

License

Notifications You must be signed in to change notification settings

madcitygg/rcon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rcon

Build Status Test Coverage GoDoc License

This package implements the rcon protocol for communicating with Source engine servers.

Usage

A simple example:

package main

import (
    "github.com/madcitygg/rcon"
)

func main() {
    r, err := rcon.Dial("10.10.10.10:27015")
    if err != nil {
        panic(err)
    }
    defer r.Close()

    err = r.Authenticate("password")
    if err != nil {
        panic(err)
    }

    response, err := r.Execute("status")
    if err != nil {
        panic(err)
    }

    fmt.Printf("Response: %+v\n", response)
}

About

Package for communicating with Source game servers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages