Multichannel socket version of FSimpleAbstractSocket
更多...
#include <NetworkMessage.h>
|
| | FSimpleAbstractSocket_FMultichannelTCPSocket (class FMultichannelTcpSocket *InSocket, uint32 InSendChannel, uint32 InReceiveChannel=0) |
| | Constructor 更多...
|
| |
|
virtual uint32 | GetMagic () const |
| | return the magic number for this message, also used for endian correction on the archives
|
| |
| virtual bool | Receive (uint8 *Results, int32 Size) const |
| | Block until we receive data from the socket 更多...
|
| |
| virtual bool | Send (const uint8 *Buffer, int32 Size) const |
| | Send bytes out the socket 更多...
|
| |
|
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 更多...
|
| |
Multichannel socket version of FSimpleAbstractSocket
◆ FSimpleAbstractSocket_FMultichannelTCPSocket()
| FSimpleAbstractSocket_FMultichannelTCPSocket::FSimpleAbstractSocket_FMultichannelTCPSocket |
( |
class FMultichannelTcpSocket * |
InSocket, |
|
|
uint32 |
InSendChannel, |
|
|
uint32 |
InReceiveChannel = 0 |
|
) |
| |
|
inline |
Constructor
- 参数
-
| InSocket | Multichannel socket to forward requests to |
| InSendChannel | Channel to send to |
| InReceiveChannel | Channel to receive from, defaults to the sending channel |
◆ Receive()
| virtual bool FSimpleAbstractSocket_FMultichannelTCPSocket::Receive |
( |
uint8 * |
Results, |
|
|
int32 |
Size |
|
) |
| const |
|
virtual |
Block until we receive data from the socket
- 参数
-
| Results | Buffer of at least Size size, used to hold the results |
| Size | Number of bytes to read |
- 返回
- true if read is successful
实现了 FSimpleAbstractSocket.
◆ Send()
| virtual bool FSimpleAbstractSocket_FMultichannelTCPSocket::Send |
( |
const uint8 * |
Buffer, |
|
|
int32 |
Size |
|
) |
| const |
|
virtual |
Send bytes out the socket
- 参数
-
| Buffer | Buffer containing bytes to send |
| Size | Number of bytes to send |
- 返回
- true if read is successful
实现了 FSimpleAbstractSocket.
该类的文档由以下文件生成: