TlsSocket.Receive Method
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9083)
Receive(Byte[])
Receives data from a connected 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.
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.
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.
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.
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.
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. |