Versions in this module Expand all Collapse all v0 v0.1.0 Sep 7, 2023 Changes in this version + const BundleID + const ClientVersionString + const ProgName + var HeaderSize = uint32(binary.Size(Header{})) + type Client struct + func NewClient(udid string, port int) (*Client, 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) 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 + func (c Client) Close() error + func (c Client) Recv(resp any) error + type Conn struct + func NewConn() (*Conn, error) + func (c *Conn) Dial(deviceId, port int) error + func (c *Conn) ListDevices() ([]*DeviceAttachment, error) + func (c *Conn) ReadPairRecord(udid string) (*PairRecord, error) + func (c *Conn) Recv(msg any) error + func (c *Conn) Request(req, resp any) error + func (c *Conn) Send(msg any) error + type DeviceAttached struct + DeviceID int + MessageType string + Properties *DeviceAttachment + type DeviceAttachment struct + ConnectionSpeed int + ConnectionType string + DeviceID int + LocationID int + ProductID int + SerialNumber string + UDID string + USBSerialNumber string + func (d DeviceAttachment) String() string + type Header struct + Length uint32 + MessageType uint32 + Tag uint32 + Version uint32 + type PairRecord struct + DeviceCertificate []byte + EscrowBag []byte + HostCertificate []byte + HostID string + HostPrivateKey []byte + RootCertificate []byte + RootPrivateKey []byte + SystemBUID string + type ResultValue int + const ResultValueBadCommand + const ResultValueBadDevice + const ResultValueBadVersion + const ResultValueConnectionRefused + const ResultValueConnectionUnknown1 + const ResultValueConnectionUnknown2 + const ResultValueOK