Méthode | Description | |
---|---|---|
ReceiveAsync ( this socket, byte buffer, int offset, int size, SocketFlags socketFlags, |
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, |
||
socket | this | /// The socket from which to read data. /// |
buffer | byte |
/// An array of type |
offset | int |
/// The zero-based position in the |
size | int | /// The number of bytes to receive. /// |
socketFlags | SocketFlags |
/// A bitwise combination of the |
cancellationToken |
/// A |
|
Résultat | Task |