System::Net::Sockets::Socket::ReceiveFrom 方法

Socket::ReceiveFrom(System::ArrayPtr<uint8_t>, int32_t, int32_t, SocketFlags, System::SharedPtr<EndPoint>&) method

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

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

ReturnValue

接收的字节数。

另见

Socket::ReceiveFrom(System::ArrayPtr<uint8_t>, int32_t, SocketFlags, System::SharedPtr<EndPoint>&) method

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

int32_t System::Net::Sockets::Socket::ReceiveFrom(System::ArrayPtr<uint8_t> buffer, int32_t size, SocketFlags socketFlags, System::SharedPtr<EndPoint> &remoteEP)
参数类型描述
bufferSystem::ArrayPtr<uint8_t>接收的数据将被分配的字节数组。
sizeint32_t要接收的字节数,这些字节将从 ‘offset’ 索引开始分配到指定的字节数组。
socketFlagsSocketFlags接收行为。
remoteEPSystem::SharedPtr<EndPoint>&远程端点。

ReturnValue

接收的字节数。

另见

Socket::ReceiveFrom(System::ArrayPtr<uint8_t>, SocketFlags, System::SharedPtr<EndPoint>&) method

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

int32_t System::Net::Sockets::Socket::ReceiveFrom(System::ArrayPtr<uint8_t> buffer, SocketFlags socketFlags, System::SharedPtr<EndPoint> &remoteEP)
参数类型描述
bufferSystem::ArrayPtr<uint8_t>接收的数据将被分配的字节数组。
socketFlagsSocketFlags接收行为。
remoteEPSystem::SharedPtr<EndPoint>&远程端点。

ReturnValue

接收的字节数。

另见

Socket::ReceiveFrom(System::ArrayPtr<uint8_t>, SocketFlags, System::SharedPtr<EndPoint>&) method

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

template<std::size_t> int32_t System::Net::Sockets::Socket::ReceiveFrom(System::ArrayPtr<uint8_t> buffer, SocketFlags socketFlags, System::SharedPtr<EndPoint> &remoteEP)
参数类型描述
bufferSystem::ArrayPtr<uint8_t>接收的数据将被分配的字节数组。
socketFlagsSocketFlags接收行为。
remoteEPSystem::SharedPtr<EndPoint>&远程端点。

ReturnValue

接收的字节数。

另见

Socket::ReceiveFrom(System::ArrayPtr<uint8_t>, System::SharedPtr<EndPoint>&) method

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

int32_t System::Net::Sockets::Socket::ReceiveFrom(System::ArrayPtr<uint8_t> buffer, System::SharedPtr<EndPoint> &remoteEP)
参数类型描述
bufferSystem::ArrayPtr<uint8_t>接收的数据将被分配的字节数组。
remoteEPSystem::SharedPtr<EndPoint>&远程端点。

ReturnValue

接收的字节数。

另见

Socket::ReceiveFrom(System::Details::ArrayView<uint8_t>, int32_t, int32_t, SocketFlags, System::SharedPtr<EndPoint>&) method

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

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

ReturnValue

接收的字节数。

另见

Socket::ReceiveFrom(System::Details::ArrayView<uint8_t>, int32_t, SocketFlags, System::SharedPtr<EndPoint>&) method

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

int32_t System::Net::Sockets::Socket::ReceiveFrom(System::Details::ArrayView<uint8_t> buffer, int32_t size, SocketFlags socketFlags, System::SharedPtr<EndPoint> &remoteEP)
参数类型描述
bufferSystem::Details::ArrayView<uint8_t>接收的数据将被分配的字节数组。
sizeint32_t要接收的字节数,这些字节将从 ‘offset’ 索引开始分配到指定的字节数组。
socketFlagsSocketFlags接收行为。
remoteEPSystem::SharedPtr<EndPoint>&远程端点。

ReturnValue

接收的字节数。

另见

Socket::ReceiveFrom(System::Details::ArrayView<uint8_t>, SocketFlags, System::SharedPtr<EndPoint>&) method

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

int32_t System::Net::Sockets::Socket::ReceiveFrom(System::Details::ArrayView<uint8_t> buffer, SocketFlags socketFlags, System::SharedPtr<EndPoint> &remoteEP)
参数类型描述
bufferSystem::Details::ArrayView<uint8_t>接收的数据将被分配的字节数组。
socketFlagsSocketFlags接收行为。
remoteEPSystem::SharedPtr<EndPoint>&远程端点。

ReturnValue

接收的字节数。

另见

Socket::ReceiveFrom(System::Details::ArrayView<uint8_t>, System::SharedPtr<EndPoint>&) method

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

int32_t System::Net::Sockets::Socket::ReceiveFrom(System::Details::ArrayView<uint8_t> buffer, System::SharedPtr<EndPoint> &remoteEP)
参数类型描述
bufferSystem::Details::ArrayView<uint8_t>接收的数据将被分配的字节数组。
remoteEPSystem::SharedPtr<EndPoint>&远程端点。

ReturnValue

接收的字节数。

另见

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

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

template<std::size_t> int32_t System::Net::Sockets::Socket::ReceiveFrom(System::Details::StackArray<uint8_t, N> &buffer, int32_t offset, int32_t size, SocketFlags socketFlags, System::SharedPtr<EndPoint> &remoteEP)
参数类型描述
bufferSystem::Details::StackArray<uint8_t, N>&接收的数据将被分配的字节数组。
offsetint32_t指定数组中的字节偏移量。
sizeint32_t要接收的字节数,这些字节将从 ‘offset’ 索引开始分配到指定的字节数组。
socketFlagsSocketFlags接收行为。
remoteEPSystem::SharedPtr<EndPoint>&远程端点。

ReturnValue

接收的字节数。

另见

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

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

template<std::size_t> int32_t System::Net::Sockets::Socket::ReceiveFrom(System::Details::StackArray<uint8_t, N> &buffer, int32_t size, SocketFlags socketFlags, System::SharedPtr<EndPoint> &remoteEP)
参数类型描述
bufferSystem::Details::StackArray<uint8_t, N>&接收的数据将被分配的字节数组。
sizeint32_t要接收的字节数,这些字节将从 ‘offset’ 索引开始分配到指定的字节数组。
socketFlagsSocketFlags接收行为。
remoteEPSystem::SharedPtr<EndPoint>&远程端点。

ReturnValue

接收的字节数。

另见

Socket::ReceiveFrom(System::Details::StackArray<uint8_t, N>&, System::SharedPtr<EndPoint>&) method

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

template<std::size_t> int32_t System::Net::Sockets::Socket::ReceiveFrom(System::Details::StackArray<uint8_t, N> &buffer, System::SharedPtr<EndPoint> &remoteEP)
参数类型描述
bufferSystem::Details::StackArray<uint8_t, N>&接收的数据将被分配的字节数组。
remoteEPSystem::SharedPtr<EndPoint>&远程端点。

ReturnValue

接收的字节数。

另见