openstdio

package
v1.0.161 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package openstdio is used to open a new socket connection that can be used to connect an app launched with appservice

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	// ID is required whenever we need to tell iOS which socket should be used
	// (for example when we launch an app we need to pass this id so that the system knows which socket should be used)
	ID uuid.UUID
	// contains filtered or unexported fields
}

Connection is a single connection to the stdio socket

func NewOpenStdIoSocket

func NewOpenStdIoSocket(device ios.DeviceEntry) (Connection, error)

NewOpenStdIoSocket creates a new stdio-socket on the device and the returned connection can be used to read and write from this socket

func (Connection) Close

func (s Connection) Close() error

Close closes the connected stdio-socket

func (Connection) Read

func (s Connection) Read(p []byte) (n int, err error)

Read reads from the connected stdio-socket

func (Connection) Write

func (s Connection) Write(p []byte) (n int, err error)

Write writes to the connected stdio-socket

Jump to

Keyboard shortcuts

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