engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FRecvMulti结构体 参考abstract

Stores the persistent state and packet buffers/data, for receiving packets with FSocket::RecvMulti. 更多...

#include <SocketTypes.h>

+ 类 FRecvMulti 继承关系图:

Public 成员函数

virtual void CountBytes (FArchive &Ar) const
 Calculates the total memory consumption of this FRecvMulti instance, including platform-specific data 更多...
 
int32 GetNumPackets () const
 Retrieves the current number of received packets
 
void GetPacket (int32 PacketIdx, FReceivedPacketView &OutPacket)
 Retrieves the information for the specified packet 更多...
 
virtual bool GetPacketTimestamp (int32 PacketIdx, FPacketTimestamp &OutTimestamp) const =0
 Returns the platform specific timestamp for when the specified packet was received by the operating system 更多...
 

Public 属性

const int32 MaxNumPackets
 The maximum number of packets this FRecvMulti instance can support
 
const int32 MaxPacketSize
 The maximum packet size this FRecvMulti instance can support
 

详细描述

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.

成员函数说明

◆ CountBytes()

virtual void FRecvMulti::CountBytes ( FArchive &  Ar) const
virtual

Calculates the total memory consumption of this FRecvMulti instance, including platform-specific data

参数
ArThe archive being used to count the memory consumption

◆ GetPacket()

void FRecvMulti::GetPacket ( int32  PacketIdx,
FReceivedPacketView &  OutPacket 
)
inline

Retrieves the information for the specified packet

参数
PacketIdxThe RecvMulti index for the packet to be retrieved
OutPacketOutputs a view to the received packet

◆ GetPacketTimestamp()

virtual bool FRecvMulti::GetPacketTimestamp ( int32  PacketIdx,
FPacketTimestamp &  OutTimestamp 
) const
pure virtual

Returns the platform specific timestamp for when the specified packet was received by the operating system

参数
PacketIdxThe index into Packets, of the packet to be checked
OutTimestampThe timestamp for the specified packet
返回
Whether or not the timestamp was retrieved successfully

该结构体的文档由以下文件生成: