Receive()

Contents
[ ]

Socket::Receive(System::ArrayPtr<uint8_t>, int32_t, SocketFlags) method

Receives data from the socket and writes it to the specified byte array.

int32_t System::Net::Sockets::Socket::Receive(System::ArrayPtr<uint8_t> buffer, int32_t size, SocketFlags socketFlags)

Arguments

ParameterTypeDescription
bufferSystem::ArrayPtr<uint8_t>The byte array where the received data will be assigned.
sizeint32_tThe number of bytes to receive.
socketFlagsSocketFlagsThe receive behavior.

Return Value

The number of received bytes.

Socket::Receive(System::Details::ArrayView<uint8_t>, int32_t, SocketFlags) method

Receives data from the socket and writes it to the specified byte array.

int32_t System::Net::Sockets::Socket::Receive(System::Details::ArrayView<uint8_t> buffer, int32_t size, SocketFlags socketFlags)

Arguments

ParameterTypeDescription
bufferSystem::Details::ArrayView<uint8_t>The byte array where the received data will be assigned.
sizeint32_tThe number of bytes to receive.
socketFlagsSocketFlagsThe receive behavior.

Return Value

The number of received bytes.

Socket::Receive(System::Details::StackArray<uint8_t, N>&, int32_t, SocketFlags) method

Receives data from the socket and writes it to the specified byte array.

template<std::size_t> int32_t System::Net::Sockets::Socket::Receive(System::Details::StackArray<uint8_t, N> &buffer, int32_t size, SocketFlags socketFlags)

Arguments

ParameterTypeDescription
bufferSystem::Details::StackArray<uint8_t, N>&The byte array where the received data will be assigned.
sizeint32_tThe number of bytes to receive.
socketFlagsSocketFlagsThe receive behavior.

Return Value

The number of received bytes.

Socket::Receive(System::ArrayPtr<uint8_t>, SocketFlags) method

Receives data from the socket and writes it to the specified byte array.

int32_t System::Net::Sockets::Socket::Receive(System::ArrayPtr<uint8_t> buffer, SocketFlags socketFlags)

Arguments

ParameterTypeDescription
bufferSystem::ArrayPtr<uint8_t>The byte array where the received data will be assigned.
socketFlagsSocketFlagsThe receive behavior.

Return Value

The number of received bytes.

Socket::Receive(System::Details::ArrayView<uint8_t>, SocketFlags) method

Receives data from the socket and writes it to the specified byte array.

int32_t System::Net::Sockets::Socket::Receive(System::Details::ArrayView<uint8_t> buffer, SocketFlags socketFlags)

Arguments

ParameterTypeDescription
bufferSystem::Details::ArrayView<uint8_t>The byte array where the received data will be assigned.
socketFlagsSocketFlagsThe receive behavior.

Return Value

The number of received bytes.

Socket::Receive(System::Details::StackArray<uint8_t, N>&, SocketFlags) method

Receives data from the socket and writes it to the specified byte array.

template<std::size_t> int32_t System::Net::Sockets::Socket::Receive(System::Details::StackArray<uint8_t, N> &buffer, SocketFlags socketFlags)

Arguments

ParameterTypeDescription
bufferSystem::Details::StackArray<uint8_t, N>&The byte array where the received data will be assigned.
socketFlagsSocketFlagsThe receive behavior.

Return Value

The number of received bytes.

Socket::Receive(System::ArrayPtr<uint8_t>) method

Receives data from the socket and writes it to the specified byte array.

int32_t System::Net::Sockets::Socket::Receive(System::ArrayPtr<uint8_t> buffer)

Arguments

ParameterTypeDescription
bufferSystem::ArrayPtr<uint8_t>The byte array where the received data will be assigned.

Return Value

The number of received bytes.

Socket::Receive(System::Details::ArrayView<uint8_t>) method

Receives data from the socket and writes it to the specified byte array.

int32_t System::Net::Sockets::Socket::Receive(System::Details::ArrayView<uint8_t> buffer)

Arguments

ParameterTypeDescription
bufferSystem::Details::ArrayView<uint8_t>The byte array where the received data will be assigned.

Return Value

The number of received bytes.

Socket::Receive(System::Details::StackArray<uint8_t, N>&) method

Receives data from the socket and writes it to the specified byte array.

template<std::size_t> int32_t System::Net::Sockets::Socket::Receive(System::Details::StackArray<uint8_t, N> &buffer)

Arguments

ParameterTypeDescription
bufferSystem::Details::StackArray<uint8_t, N>&The byte array where the received data will be assigned.

Return Value

The number of received bytes.

Socket::Receive(System::ArrayPtr<uint8_t>, int32_t, int32_t, SocketFlags) method

Receives data from the socket and writes it to the specified byte array.

int32_t System::Net::Sockets::Socket::Receive(System::ArrayPtr<uint8_t> buffer, int32_t offset, int32_t size, SocketFlags socketFlags)

Arguments

ParameterTypeDescription
bufferSystem::ArrayPtr<uint8_t>The byte array where the received data will be assigned.
offsetint32_tThe offset in bytes in the specified array.
sizeint32_tThe number of bytes to receive that will be assigned to the specified byte array from the ‘offset’ index.
socketFlagsSocketFlagsThe receive behavior.

Return Value

The number of received bytes.

Socket::Receive(System::Details::ArrayView<uint8_t>, int32_t, int32_t, SocketFlags) method

Receives data from the socket and writes it to the specified byte array.

int32_t System::Net::Sockets::Socket::Receive(System::Details::ArrayView<uint8_t> buffer, int32_t offset, int32_t size, SocketFlags socketFlags)

Arguments

ParameterTypeDescription
bufferSystem::Details::ArrayView<uint8_t>The byte array where the received data will be assigned.
offsetint32_tThe offset in bytes in the specified array.
sizeint32_tThe number of bytes to receive that will be assigned to the specified byte array from the ‘offset’ index.
socketFlagsSocketFlagsThe receive behavior.

Return Value

The number of received bytes.

Socket::Receive(System::Details::StackArray<uint8_t, N>&, int32_t, int32_t, SocketFlags) method

Receives data from the socket and writes it to the specified byte array.

template<std::size_t> int32_t System::Net::Sockets::Socket::Receive(System::Details::StackArray<uint8_t, N> &buffer, int32_t offset, int32_t size, SocketFlags socketFlags)

Arguments

ParameterTypeDescription
bufferSystem::Details::StackArray<uint8_t, N>&The byte array where the received data will be assigned.
offsetint32_tThe offset in bytes in the specified array.
sizeint32_tThe number of bytes to receive that will be assigned to the specified byte array from the ‘offset’ index.
socketFlagsSocketFlagsThe receive behavior.

Return Value

The number of received bytes.

Socket::Receive(System::ArrayPtr<uint8_t>, int32_t, int32_t, SocketFlags, SocketError&) method

Receives data from the socket and writes it to the specified byte array.

int32_t System::Net::Sockets::Socket::Receive(System::ArrayPtr<uint8_t> buffer, int32_t offset, int32_t size, SocketFlags socketFlags, SocketError &errorCode)

Arguments

ParameterTypeDescription
bufferSystem::ArrayPtr<uint8_t>The byte array where the received data will be assigned.
offsetint32_tThe offset in bytes in the specified array.
sizeint32_tThe number of bytes to receive that will be assigned to the specified byte array from the ‘offset’ index.
socketFlagsSocketFlagsThe receive behavior.
errorCodeSocketError&The output parameter where the error code will be assigned when the receive operation fails.

Return Value

The number of received bytes.

Socket::Receive(System::Details::ArrayView<uint8_t>, int32_t, int32_t, SocketFlags, SocketError&) method

Receives data from the socket and writes it to the specified byte array.

int32_t System::Net::Sockets::Socket::Receive(System::Details::ArrayView<uint8_t> buffer, int32_t offset, int32_t size, SocketFlags socketFlags, SocketError &errorCode)

Arguments

ParameterTypeDescription
bufferSystem::Details::ArrayView<uint8_t>The byte array where the received data will be assigned.
offsetint32_tThe offset in bytes in the specified array.
sizeint32_tThe number of bytes to receive that will be assigned to the specified byte array from the ‘offset’ index.
socketFlagsSocketFlagsThe receive behavior.
errorCodeSocketError&The output parameter where the error code will be assigned when the receive operation fails.

Return Value

The number of received bytes.

Socket::Receive(System::Details::StackArray<uint8_t, N>&, int32_t, int32_t, SocketFlags, SocketError&) method

Receives data from the socket and writes it to the specified byte array.

template<std::size_t> int32_t System::Net::Sockets::Socket::Receive(System::Details::StackArray<uint8_t, N> &buffer, int32_t offset, int32_t size, SocketFlags socketFlags, SocketError &errorCode)

Arguments

ParameterTypeDescription
bufferSystem::Details::StackArray<uint8_t, N>&The byte array where the received data will be assigned.
offsetint32_tThe offset in bytes in the specified array.
sizeint32_tThe number of bytes to receive that will be assigned to the specified byte array from the ‘offset’ index.
socketFlagsSocketFlagsThe receive behavior.
errorCodeSocketError&The output parameter where the error code will be assigned when the receive operation fails.

Return Value

The number of received bytes.

Socket::Receive(System::SharedPtr<Collections::Generic::IList<ArraySegment<uint8_t>>>) method

Receives data from the socket and writes it to the specified byte arrays.

int32_t System::Net::Sockets::Socket::Receive(System::SharedPtr<Collections::Generic::IList<ArraySegment<uint8_t>>> buffers)

Arguments

ParameterTypeDescription
buffersSystem::SharedPtr<Collections::Generic::IList<ArraySegment<uint8_t>>>The byte arrays where the received data will be assigned.

Return Value

The number of bytes that are received.

Socket::Receive(System::SharedPtr<Collections::Generic::IList<ArraySegment<uint8_t>>>, SocketFlags) method

Receives data from the socket and writes it to the specified byte arrays.

int32_t System::Net::Sockets::Socket::Receive(System::SharedPtr<Collections::Generic::IList<ArraySegment<uint8_t>>> buffers, SocketFlags socketFlags)

Arguments

ParameterTypeDescription
buffersSystem::SharedPtr<Collections::Generic::IList<ArraySegment<uint8_t>>>The byte arrays where the received data will be assigned.
socketFlagsSocketFlagsThe receive behaviour.

Return Value

The number of received bytes.

Socket::Receive(System::SharedPtr<Collections::Generic::IList<ArraySegment<uint8_t>>>, SocketFlags, SocketError&) method

Receives data from the socket and writes it to the specified byte arrays.

int32_t System::Net::Sockets::Socket::Receive(System::SharedPtr<Collections::Generic::IList<ArraySegment<uint8_t>>> buffers, SocketFlags socketFlags, SocketError &errorCode)

Arguments

ParameterTypeDescription
buffersSystem::SharedPtr<Collections::Generic::IList<ArraySegment<uint8_t>>>The byte arrays where the received data will be assigned.
socketFlagsSocketFlagsThe receive behaviour.
errorCodeSocketError&The output parameter where the error code will be assigned when the receive operation fails.

Return Value

The number of received bytes.

See Also