Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- func (c Client) Close() error
- func (c *Client) Conn() net.Conn
- func (c *Client) DeviceID() int
- func (c *Client) DeviceLinkHandshake() ([]any, error)
- func (c *Client) DeviceLinkRecv() (any, error)
- func (c *Client) DeviceLinkSend(msg any) error
- func (c *Client) DisableSSL()
- func (c *Client) EnableSSL() error
- func (c *Client) PairRecord() *PairRecord
- func (c Client) Recv(resp any) error
- func (c *Client) RecvByte() (byte, error)
- func (c *Client) RecvBytes() ([]byte, error)
- func (c *Client) Request(req, resp any) error
- func (c *Client) Send(req any) error
- func (c *Client) UDID() string
- type Conn
- type DeviceAttached
- type DeviceAttachment
- type Header
- type PairRecord
- type ResultValue
Constants ¶
View Source
const ( ProgName = "ipsw" BundleID = "io.blacktop.ipsw" ClientVersionString = "ipsw-usbmux-0.0.1" )
Variables ¶
View Source
var HeaderSize = uint32(binary.Size(Header{}))
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DeviceLinkHandshake ¶
func (*Client) DeviceLinkRecv ¶
func (*Client) DeviceLinkSend ¶
func (*Client) DisableSSL ¶
func (c *Client) DisableSSL()
func (*Client) PairRecord ¶
func (c *Client) PairRecord() *PairRecord
type Conn ¶
func (*Conn) ListDevices ¶
func (c *Conn) ListDevices() ([]*DeviceAttachment, error)
func (*Conn) ReadPairRecord ¶
func (c *Conn) ReadPairRecord(udid string) (*PairRecord, error)
type DeviceAttached ¶
type DeviceAttached struct { MessageType string DeviceID int Properties *DeviceAttachment }
type DeviceAttachment ¶
type DeviceAttachment struct { ConnectionSpeed int ConnectionType string DeviceID int LocationID int ProductID int SerialNumber string UDID string USBSerialNumber string }
func (DeviceAttachment) String ¶
func (d DeviceAttachment) String() string
type PairRecord ¶
type ResultValue ¶
type ResultValue int
const ( ResultValueOK ResultValue = iota ResultValueBadCommand ResultValueBadDevice ResultValueConnectionRefused ResultValueConnectionUnknown1 ResultValueConnectionUnknown2 ResultValueBadVersion )
Click to show internal directories.
Click to hide internal directories.