C# 클래스 SharpAdbClient.AdbSocket

Implements a client for the Android Debug Bridge client-server protocol. Using the client, you can send messages to and receive messages from the Android Debug Bridge.

The AdbSocket class implements the raw messaging protocol; that is, sending and receiving messages. For interacting with the services the Android Debug Bridge exposes, use the AdbClient.

For more information about the protocol that is implemented here, see chapter II Protocol Details, section 1. Client <->Server protocol at .

상속: IAdbSocket, IDisposable
파일 보기 프로젝트 열기: ArduPilot/MissionPlanner

공개 메소드들

메소드 설명
AdbSocket ( EndPoint endPoint ) : Exceptions

Initializes a new instance of the AdbSocket class.

AdbSocket ( ITcpSocket socket ) : Exceptions

Initializes a new instance of the AdbSocket class.

Close ( ) : void
Dispose ( ) : void

Releases all resources used by the current instance of the AdbSocket class.

GetShellStream ( ) : Stream
IsOkay ( byte reply ) : bool

Determines whether the specified reply is okay.

Read ( byte data ) : void
Read ( byte data, int length ) : void
ReadAdbResponse ( ) : SharpAdbClient.AdbResponse
ReadString ( ) : string
ReadSyncLength ( ) : int
ReadSyncResponse ( ) : SyncCommand
ReadSyncString ( int length ) : string
Reconnect ( ) : void
Send ( byte data, int length ) : void
SendAdbRequest ( string request ) : void
SendSyncRequest ( SyncCommand command, int length ) : void
SendSyncRequest ( SyncCommand command, string path ) : void
SendSyncRequest ( SyncCommand command, string path, int permissions ) : void

보호된 메소드들

메소드 설명
ReadAdbResponseInner ( ) : SharpAdbClient.AdbResponse

Reads the response from ADB after a command.

ReplyToString ( byte reply ) : string

Converts an ADB reply to a string.

Write ( byte data ) : bool

Write until all data in "data" is written or the connection fails or times out.

This uses the default time out value.

메소드 상세

AdbSocket() 공개 메소드

Initializes a new instance of the AdbSocket class.
public AdbSocket ( EndPoint endPoint ) : Exceptions
endPoint System.Net.EndPoint /// The at which the Android Debug Bridge is listening /// for clients. ///
리턴 Exceptions

AdbSocket() 공개 메소드

Initializes a new instance of the AdbSocket class.
public AdbSocket ( ITcpSocket socket ) : Exceptions
socket ITcpSocket /// The at which the Android Debug Bridge is listening /// for clients. ///
리턴 Exceptions

Close() 공개 메소드

public Close ( ) : void
리턴 void

Dispose() 공개 메소드

Releases all resources used by the current instance of the AdbSocket class.
public Dispose ( ) : void
리턴 void

GetShellStream() 공개 메소드

public GetShellStream ( ) : Stream
리턴 Stream

IsOkay() 공개 정적인 메소드

Determines whether the specified reply is okay.
public static IsOkay ( byte reply ) : bool
reply byte The reply.
리턴 bool

Read() 공개 메소드

public Read ( byte data ) : void
data byte
리턴 void

Read() 공개 메소드

public Read ( byte data, int length ) : void
data byte
length int
리턴 void

ReadAdbResponse() 공개 메소드

public ReadAdbResponse ( ) : SharpAdbClient.AdbResponse
리턴 SharpAdbClient.AdbResponse

ReadAdbResponseInner() 보호된 메소드

Reads the response from ADB after a command.
protected ReadAdbResponseInner ( ) : SharpAdbClient.AdbResponse
리턴 SharpAdbClient.AdbResponse

ReadString() 공개 메소드

public ReadString ( ) : string
리턴 string

ReadSyncLength() 공개 메소드

public ReadSyncLength ( ) : int
리턴 int

ReadSyncResponse() 공개 메소드

public ReadSyncResponse ( ) : SyncCommand
리턴 SyncCommand

ReadSyncString() 공개 메소드

public ReadSyncString ( int length ) : string
length int
리턴 string

Reconnect() 공개 메소드

public Reconnect ( ) : void
리턴 void

ReplyToString() 보호된 메소드

Converts an ADB reply to a string.
protected ReplyToString ( byte reply ) : string
reply byte /// A array that represents the ADB reply. ///
리턴 string

Send() 공개 메소드

public Send ( byte data, int length ) : void
data byte
length int
리턴 void

SendAdbRequest() 공개 메소드

public SendAdbRequest ( string request ) : void
request string
리턴 void

SendSyncRequest() 공개 메소드

public SendSyncRequest ( SyncCommand command, int length ) : void
command SyncCommand
length int
리턴 void

SendSyncRequest() 공개 메소드

public SendSyncRequest ( SyncCommand command, string path ) : void
command SyncCommand
path string
리턴 void

SendSyncRequest() 공개 메소드

public SendSyncRequest ( SyncCommand command, string path, int permissions ) : void
command SyncCommand
path string
permissions int
리턴 void

Write() 보호된 메소드

Write until all data in "data" is written or the connection fails or times out.
This uses the default time out value.
protected Write ( byte data ) : bool
data byte The data to send.
리턴 bool