| | 1 | | // Copyright (c) ZeroC, Inc. |
| | 2 | |
|
| | 3 | | using IceRpc.Transports.Slic; |
| | 4 | | using IceRpc.Transports.Tcp; |
| | 5 | | using System.Net.Security; |
| | 6 | |
|
| | 7 | | namespace IceRpc.Transports; |
| | 8 | |
|
| | 9 | | /// <summary>A class to create a <see cref="IListener{T}" /> to accept incoming multiplexed connections.</summary> |
| | 10 | | public interface IMultiplexedServerTransport |
| | 11 | | { |
| | 12 | | /// <summary>Gets the default multiplexed server transport.</summary> |
| | 13 | | /// <value>The default multiplexed server transport is the <see cref="SlicServerTransport" />.</value> |
| 26 | 14 | | public static IMultiplexedServerTransport Default { get; } = new SlicServerTransport(new TcpServerTransport()); |
| | 15 | |
|
| | 16 | | /// <summary>Gets the transport's name.</summary> |
| | 17 | | /// <value>The transport name.</value> |
| | 18 | | string Name { get; } |
| | 19 | |
|
| | 20 | | /// <summary>Starts listening on a server address.</summary> |
| | 21 | | /// <param name="serverAddress">The server address of the listener.</param> |
| | 22 | | /// <param name="options">The multiplexed connection options.</param> |
| | 23 | | /// <param name="serverAuthenticationOptions">The SSL server authentication options.</param> |
| | 24 | | /// <returns>The new listener.</returns> |
| | 25 | | /// <remarks>The IceRPC core can call this method concurrently so it must be thread-safe.</remarks> |
| | 26 | | IListener<IMultiplexedConnection> Listen( |
| | 27 | | ServerAddress serverAddress, |
| | 28 | | MultiplexedConnectionOptions options, |
| | 29 | | SslServerAuthenticationOptions? serverAuthenticationOptions); |
| | 30 | | } |