System::Net::Sockets::Socket::ReceiveMessageFrom method
Contents
[
Hide
]Socket::ReceiveMessageFrom(System::ArrayPtr<uint8_t>, int32_t, int32_t, SocketFlags&, System::SharedPtr<EndPoint>&, IPPacketInformation&) method
Receives data from the specified endpoint and writes it to the specified byte array.
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)
Parameter | Type | Description |
---|---|---|
buffer | System::ArrayPtr<uint8_t> | The byte array where the received data will be assigned. |
offset | int32_t | The offset in bytes in the specified array. |
size | int32_t | The number of bytes to receive that will be assigned to the specified byte array from the ‘offset’ index. |
socketFlags | SocketFlags& | The receive behavior. |
remoteEP | System::SharedPtr<EndPoint>& | The remote endpoint. |
ipPacketInformation | IPPacketInformation& | The output parameter where information about the packet will be assigned. |
ReturnValue
The number of received bytes.
See Also
- Typedef ArrayPtr
- Enum SocketFlags
- Typedef SharedPtr
- Class EndPoint
- Class IPPacketInformation
- Class Socket
- Namespace System::Net::Sockets
- Library Aspose.PUB for C++
Socket::ReceiveMessageFrom(System::Details::ArrayView<uint8_t>, int32_t, int32_t, SocketFlags&, System::SharedPtr<EndPoint>&, IPPacketInformation&) method
Receives data from the specified endpoint and writes it to the specified byte array.
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)
Parameter | Type | Description |
---|---|---|
buffer | System::Details::ArrayView<uint8_t> | The byte array where the received data will be assigned. |
offset | int32_t | The offset in bytes in the specified array. |
size | int32_t | The number of bytes to receive that will be assigned to the specified byte array from the ‘offset’ index. |
socketFlags | SocketFlags& | The receive behavior. |
remoteEP | System::SharedPtr<EndPoint>& | The remote endpoint. |
ipPacketInformation | IPPacketInformation& | The output parameter where information about the packet will be assigned. |
ReturnValue
The number of received bytes.
See Also
- Enum SocketFlags
- Typedef SharedPtr
- Class EndPoint
- Class IPPacketInformation
- Class Socket
- Namespace System::Net::Sockets
- Library Aspose.PUB for C++
Socket::ReceiveMessageFrom(System::Details::StackArray<uint8_t, N>&, int32_t, int32_t, SocketFlags&, System::SharedPtr<EndPoint>&, IPPacketInformation&) method
Receives data from the specified endpoint and writes it to the specified byte array.
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)
Parameter | Type | Description |
---|---|---|
buffer | System::Details::StackArray<uint8_t, N>& | The byte array where the received data will be assigned. |
offset | int32_t | The offset in bytes in the specified array. |
size | int32_t | The number of bytes to receive that will be assigned to the specified byte array from the ‘offset’ index. |
socketFlags | SocketFlags& | The receive behavior. |
remoteEP | System::SharedPtr<EndPoint>& | The remote endpoint. |
ipPacketInformation | IPPacketInformation& | The output parameter where information about the packet will be assigned. |
ReturnValue
The number of received bytes.
See Also
- Enum SocketFlags
- Typedef SharedPtr
- Class EndPoint
- Class IPPacketInformation
- Class Socket
- Namespace System::Net::Sockets
- Library Aspose.PUB for C++