public static SocketAwaitable SendToAsync(this Socket socket, SocketAwaitable awaitable) { return(awaitable.InvokeAsync(socket.SendToAsync)); }
public static SocketAwaitable ConnectAsync(this Socket socket, SocketAwaitable awaitable) { return(awaitable.InvokeAsync(socket.ConnectAsync)); }
public static SocketAwaitable ReceiveFromAsync(this Socket socket, SocketAwaitable awaitable) { return(awaitable.InvokeAsync(socket.ReceiveFromAsync)); }
public static SocketAwaitable AcceptAsync(this Socket socket, SocketAwaitable awaitable) { return(awaitable.InvokeAsync(socket.AcceptAsync)); }