Navigation
API > API/Runtime > API/Runtime/Sockets
Stores the persistent state and packet buffers/data, for receiving packets with FSocket::RecvMulti. To optimize performance, use only once instance of this struct, for the lifetime of the socket.
| Name | FRecvMulti |
| Type | struct |
| Header File | /Engine/Source/Runtime/Sockets/Public/SocketTypes.h |
| Include Path | #include "SocketTypes.h" |
Syntax
struct FRecvMulti :
public FNoncopyable,
public FVirtualDestructor
Inheritance Hierarchy
- FNoncopyable → FRecvMulti
- FVirtualDestructor → FRecvMulti
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRecvMulti
(
ISocketSubsystem* SocketSubsystem, |
Initialize an FRecvMulti instance, supporting the specified maximum packet count/sizes | SocketTypes.h |
Structs
| Name | Remarks |
|---|---|
| FRecvData | Receive data for each individual packet |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MaxNumPackets | const int32 | The maximum number of packets this FRecvMulti instance can support | SocketTypes.h | |
| MaxPacketSize | const int32 | The maximum packet size this FRecvMulti instance can support | SocketTypes.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| NumPackets | int32 | The number of packets received | SocketTypes.h | |
| Packets | TUniquePtr< FRecvData[]> | The current list of received packets | SocketTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CountBytes
(
FArchive& Ar |
Calculates the total memory consumption of this FRecvMulti instance, including platform-specific data | SocketTypes.h | |
int32 GetNumPackets() |
Retrieves the current number of received packets | SocketTypes.h | |
void GetPacket
(
int32 PacketIdx, |
Retrieves the information for the specified packet | SocketTypes.h | |
bool GetPacketTimestamp
(
int32 PacketIdx, |
Returns the platform specific timestamp for when the specified packet was received by the operating system | SocketTypes.h |