Show / Hide Table of Contents

Interface ITransport

The transport interface used by a connection for network I/O.

Namespace: Amqp
Assembly: Amqp.Net.dll
Syntax
public interface ITransport

Methods

Close()

Closes the transport.

Declaration
void Close()

Receive(Byte[], Int32, Int32)

Receives a buffer.

Declaration
int Receive(byte[] buffer, int offset, int count)
Parameters
Type Name Description
System.Byte[] buffer

The buffer to store the received bytes.

System.Int32 offset

The start position.

System.Int32 count

The number of bytes to receive.

Returns
Type Description
System.Int32

The number of bytes received. It may be less than count. A value of 0 means that the transport is closed.

Send(ByteBuffer)

Sends a buffer.

Declaration
void Send(ByteBuffer buffer)
Parameters
Type Name Description
ByteBuffer buffer

The buffer to send.

Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX