System::Net::Sockets::Socket::ReceiveMessageFrom método

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

Recibe datos del punto final especificado y los escribe en la matriz de bytes especificada.

int32_t System::Net::Sockets::Socket::ReceiveMessageFrom(System::ArrayPtr<uint8_t> buffer, int32_t offset, int32_t size, SocketFlags &socketFlags, System::SharedPtr<EndPoint> &remoteEP, IPPacketInformation &ipPacketInformation)
ParámetroTipoDescripción
búferSystem::ArrayPtr<uint8_t>El arreglo de bytes donde se asignarán los datos recibidos.
desplazamientoint32_tEl desplazamiento en bytes en la matriz especificada.
sizeint32_tEl número de bytes a recibir que se asignarán al arreglo de bytes especificado desde el índice ‘offset’.
socketFlagsSocketFlags&El comportamiento de recepción.
remoteEPSystem::SharedPtr<EndPoint>&El punto final remoto.
ipPacketInformationIPPacketInformation&El parámetro de salida donde se asignará la información del paquete.

ReturnValue

El número de bytes recibidos.

Ver también

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

Recibe datos del punto final especificado y los escribe en la matriz de bytes especificada.

int32_t System::Net::Sockets::Socket::ReceiveMessageFrom(System::Details::ArrayView<uint8_t> buffer, int32_t offset, int32_t size, SocketFlags &socketFlags, System::SharedPtr<EndPoint> &remoteEP, IPPacketInformation &ipPacketInformation)
ParámetroTipoDescripción
búferSystem::Details::ArrayView<uint8_t>El arreglo de bytes donde se asignarán los datos recibidos.
desplazamientoint32_tEl desplazamiento en bytes en la matriz especificada.
sizeint32_tEl número de bytes a recibir que se asignarán al arreglo de bytes especificado desde el índice ‘offset’.
socketFlagsSocketFlags&El comportamiento de recepción.
remoteEPSystem::SharedPtr<EndPoint>&El punto final remoto.
ipPacketInformationIPPacketInformation&El parámetro de salida donde se asignará la información del paquete.

ReturnValue

El número de bytes recibidos.

Ver también

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

Recibe datos del punto final especificado y los escribe en la matriz de bytes especificada.

template<std::size_t> int32_t System::Net::Sockets::Socket::ReceiveMessageFrom(System::Details::StackArray<uint8_t, N> &buffer, int32_t offset, int32_t size, SocketFlags &socketFlags, System::SharedPtr<EndPoint> &remoteEP, IPPacketInformation &ipPacketInformation)
ParámetroTipoDescripción
búferSystem::Details::StackArray<uint8_t, N>&El arreglo de bytes donde se asignarán los datos recibidos.
desplazamientoint32_tEl desplazamiento en bytes en la matriz especificada.
sizeint32_tEl número de bytes a recibir que se asignarán al arreglo de bytes especificado desde el índice ‘offset’.
socketFlagsSocketFlags&El comportamiento de recepción.
remoteEPSystem::SharedPtr<EndPoint>&El punto final remoto.
ipPacketInformationIPPacketInformation&El parámetro de salida donde se asignará la información del paquete.

ReturnValue

El número de bytes recibidos.

Ver también