|
OpenTTD Source 20260311-master-g511d3794ce
|
Helper for Packet::TransferIn that reads data from a socket. More...
#include <os_abstraction.h>
Public Member Functions | |
| ssize_t | operator() (std::span< uint8_t > buffer) |
| Read data from the socket into the buffer. | |
Data Fields | |
| SOCKET | sock |
| The socket we're receiving data from. | |
Helper for Packet::TransferIn that reads data from a socket.
Definition at line 156 of file os_abstraction.h.
|
inline |
Read data from the socket into the buffer.
| buffer | The buffer to read into. |
Definition at line 164 of file os_abstraction.h.
| SOCKET SocketReceiver::sock |
The socket we're receiving data from.
Definition at line 157 of file os_abstraction.h.