C# Class SharpAdbClient.AdbClientExtensions

Provides extension methods for the IAdbClient interface. Provides overloads for commonly used funtions.
ファイルを表示 Open project: ArduPilot/MissionPlanner

Public Methods

Method Description
Connect ( this client, IPAddress address ) : void

Connect to a device via TCP/IP.

Connect ( this client, IPEndPoint endpoint ) : void

Connect to a device via TCP/IP.

Connect ( this client, string host ) : void

Connect to a device via TCP/IP.

CreateForward ( this client, DeviceData device, int localPort, int remotePort ) : void

Creates a port forwarding between a local and a remote port.

CreateForward ( this client, DeviceData device, int localPort, string remoteSocket ) : void

Forwards a remote Unix socket to a local TCP socket.

ExecuteRemoteCommand ( this client, string command, DeviceData device, IShellOutputReceiver rcvr ) : void

Executes a shell command on the remote device

Reboot ( this client, DeviceData device ) : void

Reboots the specified adb socket address.

Method Details

Connect() public static method

Connect to a device via TCP/IP.
public static Connect ( this client, IPAddress address ) : void
client this /// An instance of a class that implements the interface. ///
address System.Net.IPAddress /// The IP address of the remote device. ///
return void

Connect() public static method

Connect to a device via TCP/IP.
public static Connect ( this client, IPEndPoint endpoint ) : void
client this /// An instance of a class that implements the interface. ///
endpoint System.Net.IPEndPoint /// The IP endpoint at which the adb server on the device is running. ///
return void

Connect() public static method

Connect to a device via TCP/IP.
public static Connect ( this client, string host ) : void
client this /// An instance of a class that implements the interface. ///
host string /// The host address of the remote device. ///
return void

CreateForward() public static method

Creates a port forwarding between a local and a remote port.
/// failed to submit the forward command. /// or /// Device rejected command: + resp.Message ///
public static CreateForward ( this client, DeviceData device, int localPort, int remotePort ) : void
client this /// An instance of a class that implements the interface. ///
device DeviceData /// The device to which to forward the connections. ///
localPort int /// The local port to forward. ///
remotePort int /// The remote port to forward to ///
return void

CreateForward() public static method

Forwards a remote Unix socket to a local TCP socket.
/// The client failed to submit the forward command. /// /// The device rejected command. The error message will include the error message provided by the device. ///
public static CreateForward ( this client, DeviceData device, int localPort, string remoteSocket ) : void
client this /// An instance of a class that implements the interface. ///
device DeviceData /// The device to which to forward the connections. ///
localPort int /// The local port to forward. ///
remoteSocket string /// The remote Unix socket. ///
return void

ExecuteRemoteCommand() public static method

Executes a shell command on the remote device
public static ExecuteRemoteCommand ( this client, string command, DeviceData device, IShellOutputReceiver rcvr ) : void
client this /// An instance of a class that implements the interface. ///
command string The command to execute
device DeviceData The device to execute on
rcvr IShellOutputReceiver The shell output receiver
return void

Reboot() public static method

Reboots the specified adb socket address.
public static Reboot ( this client, DeviceData device ) : void
client this /// An instance of a class that implements the interface. ///
device DeviceData The device.
return void