Navigation
API > API/Plugins > API/Plugins/SocketSubsystemEOS > API/Plugins/SocketSubsystemEOS/FSocketEOS
- FSocket::Recv()
- FSocketEOS::Recv()
References
| Module | SocketSubsystemEOS |
| Header | /Engine/Plugins/Online/SocketSubsystemEOS/Source/SocketSubsystemEOS/Public/SocketEOS.h |
| Include | #include "SocketEOS.h" |
| Source | /Engine/Plugins/Online/SocketSubsystemEOS/Source/SocketSubsystemEOS/Private/SocketEOS.cpp |
virtual bool Recv
&40;
uint8 &42; Data,
int32 BufferSize,
int32 & BytesRead,
ESocketReceiveFlags::Type Flags
&41;
Remarks
Reads a chunk of data from a connected socket
A return value of 'true' does not necessarily mean that data was returned. Callers must check the 'BytesRead' parameter for the actual amount of data returned. A value of zero indicates that there was no data available for reading. true on success, false in case of a closed socket or an unrecoverable error.
Parameters
| Name | Description |
|---|---|
| Data | The buffer to read into |
| BufferSize | The max size of the buffer |
| BytesRead | Will indicate how many bytes were read from the socket |
| Flags | the receive flags |