2 instantiations of SocketAwaitable
ClientSample (2)
Tcp\SocketReceiver.cs (1)
21
_awaitable = new
SocketAwaitable
(scheduler);
Tcp\SocketSender.cs (1)
26
_awaitable = new
SocketAwaitable
(scheduler);
8 references to SocketAwaitable
ClientSample (8)
Tcp\SocketAwaitable.cs (1)
31
public
SocketAwaitable
GetAwaiter() => this;
Tcp\SocketReceiver.cs (3)
16
private readonly
SocketAwaitable
_awaitable;
23
_eventArgs.Completed += (_, e) => ((
SocketAwaitable
)e.UserToken).Complete(e.BytesTransferred, e.SocketError);
26
public
SocketAwaitable
ReceiveAsync(Memory<byte> buffer)
Tcp\SocketSender.cs (4)
19
private readonly
SocketAwaitable
_awaitable;
28
_eventArgs.Completed += (_, e) => ((
SocketAwaitable
)e.UserToken).Complete(e.BytesTransferred, e.SocketError);
31
public
SocketAwaitable
SendAsync(in ReadOnlySequence<byte> buffers)
57
private
SocketAwaitable
SendAsync(ReadOnlyMemory<byte> memory)