System::Net::Sockets::Socket::Receive 方法

内容
[ ]

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

从套接字接收数据并写入指定的字节数组。

int32_t System::Net::Sockets::Socket::Receive(System::ArrayPtr<uint8_t> buffer)
参数类型描述
bufferSystem::ArrayPtr<uint8_t>接收的数据将被分配的字节数组。

ReturnValue

接收的字节数。

另见

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

从套接字接收数据并写入指定的字节数组。

int32_t System::Net::Sockets::Socket::Receive(System::ArrayPtr<uint8_t> buffer, int32_t offset, int32_t size, SocketFlags socketFlags)
参数类型描述
bufferSystem::ArrayPtr<uint8_t>接收的数据将被分配的字节数组。
offsetint32_t指定数组中的字节偏移量。
sizeint32_t要接收的字节数,这些字节将从 ‘offset’ 索引开始分配到指定的字节数组。
socketFlagsSocketFlags接收行为。

ReturnValue

接收的字节数。

另见

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

从套接字接收数据并写入指定的字节数组。

int32_t System::Net::Sockets::Socket::Receive(System::ArrayPtr<uint8_t> buffer, int32_t offset, int32_t size, SocketFlags socketFlags, SocketError &errorCode)
参数类型描述
bufferSystem::ArrayPtr<uint8_t>接收的数据将被分配的字节数组。
offsetint32_t指定数组中的字节偏移量。
sizeint32_t要接收的字节数,这些字节将从 ‘offset’ 索引开始分配到指定的字节数组。
socketFlagsSocketFlags接收行为。
errorCodeSocketError&当接收操作失败时,错误代码将被分配的输出参数。

ReturnValue

接收的字节数。

另见

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

从套接字接收数据并写入指定的字节数组。

int32_t System::Net::Sockets::Socket::Receive(System::ArrayPtr<uint8_t> buffer, int32_t size, SocketFlags socketFlags)
参数类型描述
bufferSystem::ArrayPtr<uint8_t>接收的数据将被分配的字节数组。
sizeint32_t要接收的字节数。
socketFlagsSocketFlags接收行为。

ReturnValue

接收的字节数。

另见

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

从套接字接收数据并写入指定的字节数组。

int32_t System::Net::Sockets::Socket::Receive(System::ArrayPtr<uint8_t> buffer, SocketFlags socketFlags)
参数类型描述
bufferSystem::ArrayPtr<uint8_t>接收的数据将被分配的字节数组。
socketFlagsSocketFlags接收行为。

ReturnValue

接收的字节数。

另见

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

从套接字接收数据并写入指定的字节数组。

int32_t System::Net::Sockets::Socket::Receive(System::Details::ArrayView<uint8_t> buffer)
参数类型描述
bufferSystem::Details::ArrayView<uint8_t>接收的数据将被分配的字节数组。

ReturnValue

接收的字节数。

另见

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

从套接字接收数据并写入指定的字节数组。

int32_t System::Net::Sockets::Socket::Receive(System::Details::ArrayView<uint8_t> buffer, int32_t offset, int32_t size, SocketFlags socketFlags)
参数类型描述
bufferSystem::Details::ArrayView<uint8_t>接收的数据将被分配的字节数组。
offsetint32_t指定数组中的字节偏移量。
sizeint32_t要接收的字节数,这些字节将从 ‘offset’ 索引开始分配到指定的字节数组。
socketFlagsSocketFlags接收行为。

ReturnValue

接收的字节数。

另见

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

从套接字接收数据并写入指定的字节数组。

int32_t System::Net::Sockets::Socket::Receive(System::Details::ArrayView<uint8_t> buffer, int32_t offset, int32_t size, SocketFlags socketFlags, SocketError &errorCode)
参数类型描述
bufferSystem::Details::ArrayView<uint8_t>接收的数据将被分配的字节数组。
offsetint32_t指定数组中的字节偏移量。
sizeint32_t要接收的字节数,这些字节将从 ‘offset’ 索引开始分配到指定的字节数组。
socketFlagsSocketFlags接收行为。
errorCodeSocketError&当接收操作失败时,错误代码将被分配的输出参数。

ReturnValue

接收的字节数。

另见

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

从套接字接收数据并写入指定的字节数组。

int32_t System::Net::Sockets::Socket::Receive(System::Details::ArrayView<uint8_t> buffer, int32_t size, SocketFlags socketFlags)
参数类型描述
bufferSystem::Details::ArrayView<uint8_t>接收的数据将被分配的字节数组。
sizeint32_t要接收的字节数。
socketFlagsSocketFlags接收行为。

ReturnValue

接收的字节数。

另见

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

从套接字接收数据并写入指定的字节数组。

int32_t System::Net::Sockets::Socket::Receive(System::Details::ArrayView<uint8_t> buffer, SocketFlags socketFlags)
参数类型描述
bufferSystem::Details::ArrayView<uint8_t>接收的数据将被分配的字节数组。
socketFlagsSocketFlags接收行为。

ReturnValue

接收的字节数。

另见

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

从套接字接收数据并写入指定的字节数组。

template<std::size_t> int32_t System::Net::Sockets::Socket::Receive(System::Details::StackArray<uint8_t, N> &buffer)
参数类型描述
bufferSystem::Details::StackArray<uint8_t, N>&接收的数据将被分配的字节数组。

ReturnValue

接收的字节数。

另见

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

从套接字接收数据并写入指定的字节数组。

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)
参数类型描述
bufferSystem::Details::StackArray<uint8_t, N>&接收的数据将被分配的字节数组。
offsetint32_t指定数组中的字节偏移量。
sizeint32_t要接收的字节数,这些字节将从 ‘offset’ 索引开始分配到指定的字节数组。
socketFlagsSocketFlags接收行为。

ReturnValue

接收的字节数。

另见

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

从套接字接收数据并写入指定的字节数组。

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)
参数类型描述
bufferSystem::Details::StackArray<uint8_t, N>&接收的数据将被分配的字节数组。
offsetint32_t指定数组中的字节偏移量。
sizeint32_t要接收的字节数,这些字节将从 ‘offset’ 索引开始分配到指定的字节数组。
socketFlagsSocketFlags接收行为。
errorCodeSocketError&当接收操作失败时,错误代码将被分配的输出参数。

ReturnValue

接收的字节数。

另见

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

从套接字接收数据并写入指定的字节数组。

template<std::size_t> int32_t System::Net::Sockets::Socket::Receive(System::Details::StackArray<uint8_t, N> &buffer, int32_t size, SocketFlags socketFlags)
参数类型描述
bufferSystem::Details::StackArray<uint8_t, N>&接收的数据将被分配的字节数组。
sizeint32_t要接收的字节数。
socketFlagsSocketFlags接收行为。

ReturnValue

接收的字节数。

另见

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

从套接字接收数据并写入指定的字节数组。

template<std::size_t> int32_t System::Net::Sockets::Socket::Receive(System::Details::StackArray<uint8_t, N> &buffer, SocketFlags socketFlags)
参数类型描述
bufferSystem::Details::StackArray<uint8_t, N>&接收的数据将被分配的字节数组。
socketFlagsSocketFlags接收行为。

ReturnValue

接收的字节数。

另见

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

从套接字接收数据并写入指定的字节数组集合。

int32_t System::Net::Sockets::Socket::Receive(System::SharedPtr<Collections::Generic::IList<ArraySegment<uint8_t>>> buffers)
参数类型描述
缓冲区System::SharedPtr<Collections::Generic::IList<ArraySegment<uint8_t>>>接收的数据将被分配的字节数组。

ReturnValue

已接收的字节数。

另见

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

从套接字接收数据并写入指定的字节数组集合。

int32_t System::Net::Sockets::Socket::Receive(System::SharedPtr<Collections::Generic::IList<ArraySegment<uint8_t>>> buffers, SocketFlags socketFlags)
参数类型描述
缓冲区System::SharedPtr<Collections::Generic::IList<ArraySegment<uint8_t>>>接收的数据将被分配的字节数组。
socketFlagsSocketFlags接收行为。

ReturnValue

接收的字节数。

另见

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

从套接字接收数据并写入指定的字节数组集合。

int32_t System::Net::Sockets::Socket::Receive(System::SharedPtr<Collections::Generic::IList<ArraySegment<uint8_t>>> buffers, SocketFlags socketFlags, SocketError &errorCode)
参数类型描述
缓冲区System::SharedPtr<Collections::Generic::IList<ArraySegment<uint8_t>>>接收的数据将被分配的字节数组。
socketFlagsSocketFlags接收行为。
errorCodeSocketError&当接收操作失败时,错误代码将被分配的输出参数。

ReturnValue

接收的字节数。

另见