Skip to content

gaasb/source-rcon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Source RCON

Requirement

golang 1.21+

To use u need public ip! Otherwise you get panic!!!

func main() {
	client := rcon.NewClient("public_ip", 27015, "password", rcon.WithDeadline(time.Second*3))
	defer client.Close()

	if err := client.Auth(); err != nil {
		log.Fatal(err)
	}

	if response, err := client.Execute("echo hello"); err != nil {
		log.Fatal(err)
	} else {
		log.Println(response)
	}
}

About

Source engine RCON protocol implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages