C# Class SharpAdbClient.AdbServer

Provides methods for interacting with the adb server. The adb server must be running for the rest of the Managed.Adb library to work.

The adb server is a background process that runs on the host machine. Its purpose if to sense the USB ports to know when devices are attached/removed, as well as when emulator instances start/stop. The ADB server is really one giant multiplexing loop whose purpose is to orchestrate the exchange of data between clients and devices.

ファイルを表示 Open project: ArduPilot/MissionPlanner Class Usage Examples

Public Properties

Property Type Description
RequiredAdbVersion System.Version

Public Methods

Method Description
AdbServer ( ) : Mono.Unix

Initializes a new instance of the AdbServer class.

AdbServer ( EndPoint endPoint ) : Mono.Unix

Initializes a new instance of the AdbServer class, and the specific EndPoint at which the server should be listening.

GetStatus ( ) : AdbServerStatus
RestartServer ( ) : void
StartServer ( string adbPath, bool restartServerIfNewer ) : StartServerResult

Method Details

AdbServer() public method

Initializes a new instance of the AdbServer class.
public AdbServer ( ) : Mono.Unix
return Mono.Unix

AdbServer() public method

Initializes a new instance of the AdbServer class, and the specific EndPoint at which the server should be listening.
public AdbServer ( EndPoint endPoint ) : Mono.Unix
endPoint System.Net.EndPoint /// The at which the server should be listening. ///
return Mono.Unix

GetStatus() public method

public GetStatus ( ) : AdbServerStatus
return AdbServerStatus

RestartServer() public method

public RestartServer ( ) : void
return void

StartServer() public method

public StartServer ( string adbPath, bool restartServerIfNewer ) : StartServerResult
adbPath string
restartServerIfNewer bool
return StartServerResult

Property Details

RequiredAdbVersion public_oe static_oe property

The minum version of adb.exe that is supported by this library.
public static Version,System RequiredAdbVersion
return System.Version