goxbdm

package module
v0.0.0-...-98017eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2017 License: MIT Imports: 10 Imported by: 0

README

go-xbdm

Build Status Github Issues Github License

A go library for interacting with an Xbox 360 Development Kit.

Installation

go get github.com/0xdeafcafe/go-xbdm

Usage

import "github.com/0xdeafcafe/go-xbdm"

This example with be based on the assumption that the Xbox 360 Developer Kit's IP address is 192.168.1.88.

func main() {
  xbdm, err := goxbdm.NewXBDMClient("192.168.1.88")
  if err != nil {
    fmt.Println("There was an error connecting to the Development Kit.")
    return
  }

  // Set some random memory offset
  resp, err := xbdm.SetMemory(0xBF9BC9CC, "0000fa67")
  if err != nil {
    fmt.Println("There was an error writing memory to the Development Kit.")
    return
  }

  fmt.Println(resp)
}

Documentation

Index

Constants

View Source
const (

	// RebootTitle defines the enum for rebooting to the Developer Dashboard.
	RebootTitle rebootType = iota

	// RebootTitleToActiveTitle defines the enum for rebooting to the currently active
	// title.
	RebootTitleToActiveTitle

	// RebootCold defines the enum for turning the kit off and then back on.
	RebootCold

	// FrozenState is when all the threads are resumed as normal.
	FrozenState freezeState = iota

	// UnfrozenState is when all the threads are paused.
	UnfrozenState
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ConsoleIP string
	// contains filtered or unexported fields
}

Client ..

func NewXBDMClient

func NewXBDMClient(xboxIP string) (*Client, error)

NewXBDMClient creates a new XBDM client.

func NewXBDMClientWithPort

func NewXBDMClientWithPort(xboxIP string, port int) (*Client, error)

NewXBDMClientWithPort creates a new XBDM client with a custom port.

func (*Client) ChangeFreezeState

func (client *Client) ChangeFreezeState(freezeState freezeState) (err error)

ChangeFreezeState set's the freeze state of the Xbox.

func (*Client) Close

func (client *Client) Close()

Close ends the connection with the Xbox.

func (*Client) ConsoleFeatures

func (client *Client) ConsoleFeatures() ([]string, error)

ConsoleFeatures gets a list of features available on the console.

func (*Client) ConsoleName

func (client *Client) ConsoleName() string

ConsoleName returns the name of the console at the time the connection was established.

func (*Client) ConsoleType

func (client *Client) ConsoleType() (string, error)

ConsoleType gets the type of console.

func (*Client) DebugName

func (client *Client) DebugName() (string, error)

DebugName returns the debug name of the Xbox.

func (*Client) GetMemory

func (client *Client) GetMemory(address, length int64) ([]byte, error)

func (*Client) ListDirectory

func (client *Client) ListDirectory(dir string) ([]*models.DirectoryItem, error)

ListDirectory ..

func (*Client) ListDrives

func (client *Client) ListDrives() ([]*models.Drive, error)

ListDrives ..

func (*Client) ReadMultilineResponse

func (client *Client) ReadMultilineResponse() ([]string, error)

ReadMultilineResponse reads the body of a multiline response and returns it.

func (*Client) Reboot

func (client *Client) Reboot(rebootType rebootType) error

Reboot the Xbox console.

func (*Client) RunningXBEInfo

func (client *Client) RunningXBEInfo() (*models.XBEInfo, error)

RunningXBEInfo gets the xbeinfo of the currently running title.

func (*Client) Screenshot

func (client *Client) Screenshot() ([]byte, error)

Screenshot dumps the frame buffer of the Xbox.

func (*Client) SendCommand

func (client *Client) SendCommand(command string) (string, error)

SendCommand sends a text command to the Xbox.

func (*Client) SetMemory

func (client *Client) SetMemory(address int64, data string) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL