public static ValueTask <IConnectionListener> Create(EndPoint endpoint, IoUringTransport transport) { var listener = new ConnectionListener(endpoint, transport); listener.Bind(); return(new ValueTask <IConnectionListener>(listener)); }
public static async ValueTask <IConnectionListener> BindAsync(EndPoint endpoint, IoUringTransport transport, IoUringOptions options) { var listener = new ConnectionListener(endpoint, transport, options); await listener.BindAsync(); return(listener); }
public ValueTask <IConnectionListener> BindAsync(EndPoint endpoint, CancellationToken cancellationToken = default) => ConnectionListener.Create(endpoint, _ioUringTransport, _options);