Table of Contents

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

options TcpServerTransportOptions

The 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

transportAddress TransportAddress

The transport address to listen on.

options DuplexConnectionOptions

The duplex connection options.

serverAuthenticationOptions SslServerAuthenticationOptions

The 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.