Class TcpServerTransport
- Namespace
- IceRpc.Transports.Tcp
- Assembly
- IceRpc.dll
Implements IDuplexServerTransport for the tcp transport.
public class TcpServerTransport : IDuplexServerTransport
- Inheritance
-
TcpServerTransport
- Implements
- Inherited Members
Constructors
TcpServerTransport()
Constructs a TcpServerTransport.
public TcpServerTransport()
TcpServerTransport(TcpServerTransportOptions)
Constructs a TcpServerTransport.
public TcpServerTransport(TcpServerTransportOptions options)
Parameters
optionsTcpServerTransportOptionsThe transport options.
Properties
DefaultName
Gets the default transport name.
public string DefaultName { get; }
Property Value
- string
The transport accepts transport addresses that use this name as the TransportName. Some transports may accept additional names beyond this default.
Methods
Listen(TransportAddress, DuplexConnectionOptions, SslServerAuthenticationOptions?)
Starts listening on a transport address.
public IListener<IDuplexConnection> Listen(TransportAddress transportAddress, DuplexConnectionOptions options, SslServerAuthenticationOptions? serverAuthenticationOptions)
Parameters
transportAddressTransportAddressThe transport address to listen on.
optionsDuplexConnectionOptionsThe duplex connection options.
serverAuthenticationOptionsSslServerAuthenticationOptionsThe SSL server authentication options.
Returns
- IListener<IDuplexConnection>
The new listener.
Remarks
The IceRPC core can call this method concurrently so it must be thread-safe.