System::Net::Sockets::Socket::Receive method

Contents
[ ]

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)
ParameterTypeDescription
bufferSystem::ArrayPtr<uint8_t>The byte array where the received data will be assigned.

ReturnValue

The number of received bytes.

See Also

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)
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.

ReturnValue

The number of received bytes.

See Also

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)
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.

ReturnValue

The number of received bytes.

See Also

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)
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.

ReturnValue

The number of received bytes.

See Also

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)
ParameterTypeDescription
bufferSystem::ArrayPtr<uint8_t>The byte array where the received data will be assigned.
socketFlagsSocketFlagsThe receive behavior.

ReturnValue

The number of received bytes.

See Also

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)
ParameterTypeDescription
bufferSystem::Details::ArrayView<uint8_t>The byte array where the received data will be assigned.

ReturnValue

The number of received bytes.

See Also

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)
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.

ReturnValue

The number of received bytes.

See Also

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)
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.

ReturnValue

The number of received bytes.

See Also

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)
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.

ReturnValue

The number of received bytes.

See Also

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)
ParameterTypeDescription
bufferSystem::Details::ArrayView<uint8_t>The byte array where the received data will be assigned.
socketFlagsSocketFlagsThe receive behavior.

ReturnValue

The number of received bytes.

See Also

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)
ParameterTypeDescription
bufferSystem::Details::StackArray<uint8_t, N>&The byte array where the received data will be assigned.

ReturnValue

The number of received bytes.

See Also

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)
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.

ReturnValue

The number of received bytes.

See Also

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)
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.

ReturnValue

The number of received bytes.

See Also

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)
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.

ReturnValue

The number of received bytes.

See Also

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)
ParameterTypeDescription
bufferSystem::Details::StackArray<uint8_t, N>&The byte array where the received data will be assigned.
socketFlagsSocketFlagsThe receive behavior.

ReturnValue

The number of received bytes.

See Also

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)
ParameterTypeDescription
buffersSystem::SharedPtr<Collections::Generic::IList<ArraySegment<uint8_t>>>The byte arrays where the received data will be assigned.

ReturnValue

The number of bytes that are received.

See Also

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)
ParameterTypeDescription
buffersSystem::SharedPtr<Collections::Generic::IList<ArraySegment<uint8_t>>>The byte arrays where the received data will be assigned.
socketFlagsSocketFlagsThe receive behaviour.

ReturnValue

The number of received bytes.

See Also

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)
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.

ReturnValue

The number of received bytes.

See Also