|
Sunshine master
Self-hosted game stream host for Moonlight.
|
Buffers and native metadata for one batched send operation. More...
#include <src/platform/common.h>
Public Member Functions | |
| buffer_descriptor_t | buffer_for_payload_offset (ptrdiff_t offset) |
| Returns a payload buffer descriptor for the given payload offset. | |
Public Attributes | |
| size_t | block_count |
| Number of packet blocks to send. | |
| size_t | block_offset |
| First packet block index to send. | |
| size_t | header_size |
| Header size in bytes. | |
| const char * | headers |
| Optional header bytes prepended to each payload. | |
| std::uintptr_t | native_socket |
| Platform socket handle used for the send operation. | |
| std::vector< buffer_descriptor_t > & | payload_buffers |
| Payload buffers containing one or more packet blocks. | |
| size_t | payload_size |
| Payload size in bytes for each packet block. | |
| boost::asio::ip::address & | source_address |
| Local source IP address for outgoing packets. | |
| boost::asio::ip::address & | target_address |
| Destination IP address for outgoing packets. | |
| uint16_t | target_port |
| Destination UDP port for outgoing packets. | |
Buffers and native metadata for one batched send operation.
|
inline |
Returns a payload buffer descriptor for the given payload offset.
| offset | The offset in the total payload data (bytes). |