Adds Close Function

This commit is contained in:
The Surgeon
2020-07-11 15:43:19 -05:00
parent ee23be105f
commit 2159d1c959
2 changed files with 5 additions and 0 deletions

View File

@ -177,12 +177,14 @@ func (r *RCONConn) RespCmd(resp string) error {
type RCONClientConn interface {
Cmd(cmd string) error
Resp() (resp string, err error)
Close() error
}
type RCONServerConn interface {
AcceptLogin(password string) error
AcceptCmd() (cmd string, err error)
RespCmd(resp string) error
Close() error
}
func ListenRCON(addr string) (*RCONListener, error) {