C# Class SharpAdbClient.TcpSocket

Implements the ITcpSocket interface using the standard Socket class.
Inheritance: ITcpSocket
Afficher le fichier Open project: ArduPilot/MissionPlanner

Méthodes publiques

Méthode Description
Close ( ) : void
Connect ( EndPoint endPoint ) : void
Dispose ( ) : void
GetStream ( ) : Stream
Receive ( byte buffer, int offset, SocketFlags socketFlags ) : int
ReceiveAsync ( byte buffer, int offset, int size, SocketFlags socketFlags, CancellationToken cancellationToken ) : Task
Reconnect ( ) : void
Send ( byte buffer, int offset, int size, SocketFlags socketFlags ) : int
TcpSocket ( ) : Mono.Unix

Initializes a new instance of the TcpSocket class.

Private Methods

Méthode Description
CreateSocket ( EndPoint endPoint ) : Socket

Creates a new, uninitialized socket which can connect to an ADB server.

Method Details

Close() public méthode

public Close ( ) : void
Résultat void

Connect() public méthode

public Connect ( EndPoint endPoint ) : void
endPoint System.Net.EndPoint
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetStream() public méthode

public GetStream ( ) : Stream
Résultat Stream

Receive() public méthode

public Receive ( byte buffer, int offset, SocketFlags socketFlags ) : int
buffer byte
offset int
socketFlags SocketFlags
Résultat int

ReceiveAsync() public méthode

public ReceiveAsync ( byte buffer, int offset, int size, SocketFlags socketFlags, CancellationToken cancellationToken ) : Task
buffer byte
offset int
size int
socketFlags SocketFlags
cancellationToken System.Threading.CancellationToken
Résultat Task

Reconnect() public méthode

public Reconnect ( ) : void
Résultat void

Send() public méthode

public Send ( byte buffer, int offset, int size, SocketFlags socketFlags ) : int
buffer byte
offset int
size int
socketFlags SocketFlags
Résultat int

TcpSocket() public méthode

Initializes a new instance of the TcpSocket class.
public TcpSocket ( ) : Mono.Unix
Résultat Mono.Unix