C# Class SharpAdbClient.TcpSocket

Implements the ITcpSocket interface using the standard Socket class.
Inheritance: ITcpSocket
ファイルを表示 Open project: ArduPilot/MissionPlanner

Public Methods

Method 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

Method Description
CreateSocket ( EndPoint endPoint ) : Socket

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

Method Details

Close() public method

public Close ( ) : void
return void

Connect() public method

public Connect ( EndPoint endPoint ) : void
endPoint System.Net.EndPoint
return void

Dispose() public method

public Dispose ( ) : void
return void

GetStream() public method

public GetStream ( ) : Stream
return Stream

Receive() public method

public Receive ( byte buffer, int offset, SocketFlags socketFlags ) : int
buffer byte
offset int
socketFlags SocketFlags
return int

ReceiveAsync() public method

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
return Task

Reconnect() public method

public Reconnect ( ) : void
return void

Send() public method

public Send ( byte buffer, int offset, int size, SocketFlags socketFlags ) : int
buffer byte
offset int
size int
socketFlags SocketFlags
return int

TcpSocket() public method

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