Table of Contents

Interface ITcpClient

Namespace
RabbitMQ.Client
Assembly
RabbitMQ.Client.dll

Wrapper interface for Socket. Provides the socket for socket frame handler class.

public interface ITcpClient : IDisposable
Inherited Members

Remarks

Contains all methods that are currently in use in rabbitmq client.

Properties

Client

Socket Client { get; }

Property Value

Socket

Connected

bool Connected { get; }

Property Value

bool

ReceiveTimeout

TimeSpan ReceiveTimeout { get; set; }

Property Value

TimeSpan

Methods

Close()

void Close()

ConnectAsync(IPAddress, int, CancellationToken)

Task ConnectAsync(IPAddress host, int port, CancellationToken cancellationToken = default)

Parameters

host IPAddress
port int
cancellationToken CancellationToken

Returns

Task

GetStream()

NetworkStream GetStream()

Returns

NetworkStream