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)
31public SocketAwaitable GetAwaiter() => this;
Tcp\SocketReceiver.cs (3)
16private readonly SocketAwaitable _awaitable; 23_eventArgs.Completed += (_, e) => ((SocketAwaitable)e.UserToken).Complete(e.BytesTransferred, e.SocketError); 26public SocketAwaitable ReceiveAsync(Memory<byte> buffer)
Tcp\SocketSender.cs (4)
19private readonly SocketAwaitable _awaitable; 28_eventArgs.Completed += (_, e) => ((SocketAwaitable)e.UserToken).Complete(e.BytesTransferred, e.SocketError); 31public SocketAwaitable SendAsync(in ReadOnlySequence<byte> buffers) 57private SocketAwaitable SendAsync(ReadOnlyMemory<byte> memory)