Send()

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

Sends the specified data to the socket.

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

Arguments

ParameterTypeDescription
bufferSystem::ArrayPtr<uint8_t>The data to send.
sizeint32_tThe number of bytes from the specified data that must be send.
socketFlagsSocketFlagsThe send behavior.

Return Value

The number of sent bytes.

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

Sends the specified data to the socket.

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

Arguments

ParameterTypeDescription
bufferSystem::Details::ArrayView<uint8_t>The data to send.
sizeint32_tThe number of bytes from the specified data that must be send.
socketFlagsSocketFlagsThe send behavior.

Return Value

The number of sent bytes.

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

Sends the specified data to the socket.

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

Arguments

ParameterTypeDescription
bufferSystem::Details::StackArray<uint8_t, N>&The data to send.
sizeint32_tThe number of bytes from the specified data that must be send.
socketFlagsSocketFlagsThe send behavior.

Return Value

The number of sent bytes.

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

Sends the specified data to the socket.

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

Arguments

ParameterTypeDescription
bufferSystem::ArrayPtr<uint8_t>The data to send.
socketFlagsSocketFlagsThe send behavior.

Return Value

The number of sent bytes.

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

Sends the specified data to the socket.

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

Arguments

ParameterTypeDescription
bufferSystem::Details::ArrayView<uint8_t>The data to send.
socketFlagsSocketFlagsThe send behavior.

Return Value

The number of sent bytes.

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

Sends the specified data to the socket.

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

Arguments

ParameterTypeDescription
bufferSystem::Details::StackArray<uint8_t, N>&The data to send.
socketFlagsSocketFlagsThe send behavior.

Return Value

The number of sent bytes.

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

Sends the specified data to the socket.

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

Arguments

ParameterTypeDescription
bufferSystem::ArrayPtr<uint8_t>The data to send.

Return Value

The number of sent bytes.

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

Sends the specified data to the socket.

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

Arguments

ParameterTypeDescription
bufferSystem::Details::ArrayView<uint8_t>The data to send.

Return Value

The number of sent bytes.

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

Sends the specified data to the socket.

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

Arguments

ParameterTypeDescription
bufferSystem::Details::StackArray<uint8_t, N>&The data to send.

Return Value

The number of sent bytes.

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

Sends the specified data to the socket.

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

Arguments

ParameterTypeDescription
buffersSystem::SharedPtr<Collections::Generic::IList<ArraySegment<uint8_t>>>A collection of byte arrays from which data must be sent.

Return Value

The number of sent bytes.

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

Sends the specified data to the socket.

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

Arguments

ParameterTypeDescription
buffersSystem::SharedPtr<Collections::Generic::IList<ArraySegment<uint8_t>>>A collection of byte arrays from which data must be sent.
socketFlagsSocketFlagsThe send behavior.

Return Value

The number of sent bytes.

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

Sends the specified data to the socket.

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

Arguments

ParameterTypeDescription
buffersSystem::SharedPtr<Collections::Generic::IList<ArraySegment<uint8_t>>>A collection of byte arrays from which data must be sent.
socketFlagsSocketFlagsThe send behavior.
errorCodeSocketError&The output parameter where the error code will be assigned when the send operation fails.

Return Value

The number of sent bytes.

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

Sends the specified data to the socket.

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

Arguments

ParameterTypeDescription
bufferSystem::ArrayPtr<uint8_t>The data to send.
offsetint32_tThe offset in bytes in the specified array.
sizeint32_tThe number of bytes in the specified array starting from the ‘offset’ parameter.
socketFlagsSocketFlagsThe send behavior.

Return Value

The number of sent bytes.

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

Sends the specified data to the socket.

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

Arguments

ParameterTypeDescription
bufferSystem::Details::ArrayView<uint8_t>The data to send.
offsetint32_tThe offset in bytes in the specified array.
sizeint32_tThe number of bytes in the specified array starting from the ‘offset’ parameter.
socketFlagsSocketFlagsThe send behavior.

Return Value

The number of sent bytes.

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

Sends the specified data to the socket.

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

Arguments

ParameterTypeDescription
bufferSystem::Details::StackArray<uint8_t, N>&The data to send.
offsetint32_tThe offset in bytes in the specified array.
sizeint32_tThe number of bytes in the specified array starting from the ‘offset’ parameter.
socketFlagsSocketFlagsThe send behavior.

Return Value

The number of sent bytes.

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

Sends the specified data to the socket.

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

Arguments

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

Return Value

The number of sent bytes.

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

Sends the specified data to the socket.

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

Arguments

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

Return Value

The number of sent bytes.

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

Sends the specified data to the socket.

template<std::size_t> int32_t System::Net::Sockets::Socket::Send(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 data to send.
offsetint32_tThe offset in bytes in the specified array.
sizeint32_tThe number of bytes in the specified array starting from the ‘offset’ parameter.
socketFlagsSocketFlagsThe send behavior.
errorCodeSocketError&The output parameter where the error code will be assigned when the send operation fails.

Return Value

The number of sent bytes.

See Also