Seastar
High performance C++ framework for concurrent servers
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Classes | Public Member Functions | Static Public Member Functions | List of all members
seastar::net::packet Class Referencefinal

Public Member Functions

 packet (size_t nr_frags)
 
 packet (packet &&x) noexcept
 
 packet (const char *data, size_t len)
 
 packet (fragment frag)
 
 packet (fragment frag, deleter del)
 
 packet (std::vector< fragment > frag, deleter del)
 
template<typename Iterator >
 packet (Iterator begin, Iterator end, deleter del)
 
 packet (packet &&x, fragment frag)
 
 packet (fragment frag, packet &&x)
 
 packet (fragment frag, deleter del, packet &&x)
 
 packet (packet &&x, fragment frag, deleter d)
 
 packet (packet &&x, temporary_buffer< char > buf)
 
 packet (temporary_buffer< char > buf)
 
 packet (packet &&x, deleter d)
 
packetoperator= (packet &&x) noexcept
 
unsigned len () const noexcept
 
unsigned memory () const noexcept
 
fragment frag (unsigned idx) const noexcept
 
fragmentfrag (unsigned idx) noexcept
 
unsigned nr_frags () const noexcept
 
pseudo_vector fragments () const noexcept
 
fragmentfragment_array () const noexcept
 
packet share ()
 
packet share (size_t offset, size_t len)
 
void append (packet &&p)
 
void trim_front (size_t how_much) noexcept
 
void trim_back (size_t how_much) noexcept
 
template<typename Header >
Header * get_header (size_t offset=0)
 
char * get_header (size_t offset, size_t size)
 
template<typename Header >
Header * prepend_header (size_t extra_size=0)
 
char * prepend_uninitialized_header (size_t size)
 
packet free_on_cpu (unsigned cpu, std::function< void()> cb=[]{})
 
void linearize ()
 
void reset () noexcept
 
void reserve (int n_frags)
 
std::optional< uint32_t > rss_hash () const noexcept
 
std::optional< uint32_t > set_rss_hash (uint32_t hash) noexcept
 
template<typename Func >
void release_into (Func &&func)
 
std::vector< temporary_buffer< char > > release ()
 
 operator bool () noexcept
 
struct offload_info get_offload_info () const noexcept
 
struct offload_infooffload_info_ref () noexcept
 
void set_offload_info (struct offload_info oi) noexcept
 

Static Public Member Functions

static packet from_static_data (const char *data, size_t len) noexcept
 
static packet make_null_packet () noexcept
 

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