Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

TlsClientSocket.Receive Method

Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9147)

Receive(Byte[])

Receives data from a connected TlsSocket. Inherited from TlsSocket.

Declaration
public int Receive(byte[] buffer)
Parameters
Type Name Description
Byte[] buffer

The storage location for the received data.

Returns
Type Description
Int32

The number of bytes received.

Receive(Byte[], SocketFlags)

Receives data from a connected TlsSocket using the supplied flags. Inherited from TlsSocket.

Declaration
public int Receive(byte[] buffer, SocketFlags socketFlags)
Parameters
Type Name Description
Byte[] buffer

The storage location for the received data.

SocketFlags socketFlags

A bitwise combination of the SocketFlags values.

Returns
Type Description
Int32

The number of bytes received.

Receive(Byte[], Int32, SocketFlags)

Receives the specified amount of data from a connected TlsSocket using the supplied flags. Inherited from TlsSocket.

Declaration
public int Receive(byte[] buffer, int size, SocketFlags socketFlags)
Parameters
Type Name Description
Byte[] buffer

The storage location for the received data.

Int32 size

The number of bytes to receive.

SocketFlags socketFlags

A bitwise combination of the SocketFlags values.

Returns
Type Description
Int32

The number of bytes received.

Receive(Byte[], Int32, Int32)

Receives the specified amount of data from a connected TlsSocket into a specific location of the receive buffer and using the supplied flags. Inherited from TlsSocket.

Declaration
public int Receive(byte[] buffer, int offset, int size)
Parameters
Type Name Description
Byte[] buffer

The storage location for the received data.

Int32 offset

The position in the buffer at which to store the received data.

Int32 size

The number of bytes to receive.

Returns
Type Description
Int32

The number of bytes received.

Receive(ArraySegment<Byte>)

Receives data from a connected TlsSocket. Inherited from TlsSocket.

Declaration
public int Receive(ArraySegment<byte> buffer)
Parameters
Type Name Description
ArraySegment<Byte> buffer

The storage location for the received data.

Returns
Type Description
Int32

The number of bytes received.

Receive(Byte[], Int32, Int32, SocketFlags)

Receives the specified amount of data from a connected TlsSocket into a specific location of the receive buffer and using the supplied flags. Inherited from TlsSocket.

Declaration
public int Receive(byte[] buffer, int offset, int size, SocketFlags socketFlags)
Parameters
Type Name Description
Byte[] buffer

The storage location for the received data.

Int32 offset

The position in the buffer at which to store the received data.

Int32 size

The number of bytes to receive.

SocketFlags socketFlags

A bitwise combination of the SocketFlags values.

Returns
Type Description
Int32

The number of bytes received.

Implements
ISocket.Receive(Byte[], Int32, Int32, SocketFlags)
In This Article
  • Receive(Byte[])
  • Receive(Byte[], SocketFlags)
  • Receive(Byte[], Int32, SocketFlags)
  • Receive(Byte[], Int32, Int32)
  • Receive(ArraySegment<Byte>)
  • Receive(Byte[], Int32, Int32, SocketFlags)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies