C# Класс SharpAdbClient.SocketExtensions

Provides extension methods for the Socket class.
Показать файл Открыть проект

Открытые методы

Метод Описание
ReceiveAsync ( this socket, byte buffer, int offset, int size, SocketFlags socketFlags, CancellationToken cancellationToken ) : Task

Asynchronously receives data from a connected socket.

Cancelling the task will also close the socket.

Описание методов

ReceiveAsync() публичный статический Метод

Asynchronously receives data from a connected socket.
Cancelling the task will also close the socket.
public static ReceiveAsync ( this socket, byte buffer, int offset, int size, SocketFlags socketFlags, CancellationToken cancellationToken ) : Task
socket this /// The socket from which to read data. ///
buffer byte /// An array of type that is the storage location for /// the received data. ///
offset int /// The zero-based position in the parameter at which to /// start storing data. ///
size int /// The number of bytes to receive. ///
socketFlags SocketFlags /// A bitwise combination of the values. ///
cancellationToken System.Threading.CancellationToken /// A which can be used to cancel the asynchronous task. ///
Результат Task