engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FSimpleAbstractSocket类 参考abstract

Simple abstraction for sockets that allows FNFSMessageHeader to use either an ordinary socket or a mutichannel socket 更多...

#include <NetworkMessage.h>

+ 类 FSimpleAbstractSocket 继承关系图:

Public 成员函数

virtual uint32 GetMagic () const =0
 return the magic number for this message, also used for endian correction on the archives
 
virtual bool Receive (uint8 *Results, int32 Size) const =0
 Block until we receive data from the socket 更多...
 
virtual bool Send (const uint8 *Buffer, int32 Size) const =0
 Send bytes out the socket 更多...
 

详细描述

Simple abstraction for sockets that allows FNFSMessageHeader to use either an ordinary socket or a mutichannel socket

成员函数说明

◆ Receive()

virtual bool FSimpleAbstractSocket::Receive ( uint8 *  Results,
int32  Size 
) const
pure virtual

Block until we receive data from the socket

参数
ResultsBuffer of at least Size size, used to hold the results
SizeNumber of bytes to read
返回
true if read is successful

在 FSimpleAbstractSocket_FSocket , 以及 FSimpleAbstractSocket_FMultichannelTCPSocket 内被实现.

◆ Send()

virtual bool FSimpleAbstractSocket::Send ( const uint8 *  Buffer,
int32  Size 
) const
pure virtual

Send bytes out the socket

参数
BufferBuffer containing bytes to send
SizeNumber of bytes to send
返回
true if read is successful

在 FSimpleAbstractSocket_FSocket , 以及 FSimpleAbstractSocket_FMultichannelTCPSocket 内被实现.


该类的文档由以下文件生成: