Sunshine master
Self-hosted game stream host for Moonlight.
platf::batched_send_info_t Struct Reference

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.
 

Detailed Description

Buffers and native metadata for one batched send operation.

Member Function Documentation

◆ buffer_for_payload_offset()

buffer_descriptor_t platf::batched_send_info_t::buffer_for_payload_offset ( ptrdiff_t offset)
inline

Returns a payload buffer descriptor for the given payload offset.

Parameters
offsetThe offset in the total payload data (bytes).
Returns
Buffer descriptor describing the region at the given offset.

The documentation for this struct was generated from the following file: