Seastar
High performance C++ framework for concurrent servers
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
seastar::net::posix_network_stack Class Reference
Inheritance diagram for seastar::net::posix_network_stack:
seastar::network_stack seastar::net::posix_ap_network_stack

Public Member Functions

 posix_network_stack (const program_options::option_group &opts, std::pmr::polymorphic_allocator< char > *allocator=memory::malloc_allocator)
 
virtual server_socket listen (socket_address sa, listen_options opts) override
 
virtual ::seastar::socket socket () override
 
virtual net::udp_channel make_udp_channel (const socket_address &) override
 
virtual net::datagram_channel make_unbound_datagram_channel (sa_family_t) override
 
virtual net::datagram_channel make_bound_datagram_channel (const socket_address &local) override
 
virtual bool has_per_core_namespace () override
 
bool supports_ipv6 () const override
 
std::vector< network_interfacenetwork_interfaces () override
 
future< connected_socketconnect (socket_address sa, socket_address={}, transport proto=transport::TCP)
 
virtual future initialize ()
 

Static Public Member Functions

static future< std::unique_ptr< network_stack > > create (const program_options::option_group &opts, std::pmr::polymorphic_allocator< char > *allocator=memory::malloc_allocator)
 

Protected Attributes

std::pmr::polymorphic_allocator< char > * _allocator
 

Member Function Documentation

◆ has_per_core_namespace()

virtual bool seastar::net::posix_network_stack::has_per_core_namespace ( )
inlineoverridevirtual

◆ listen()

virtual server_socket seastar::net::posix_network_stack::listen ( socket_address  sa,
listen_options  opts 
)
overridevirtual

◆ make_bound_datagram_channel()

virtual net::datagram_channel seastar::net::posix_network_stack::make_bound_datagram_channel ( const socket_address local)
overridevirtual

◆ make_udp_channel()

virtual net::udp_channel seastar::net::posix_network_stack::make_udp_channel ( const socket_address )
overridevirtual

◆ make_unbound_datagram_channel()

virtual net::datagram_channel seastar::net::posix_network_stack::make_unbound_datagram_channel ( sa_family_t  )
overridevirtual

◆ network_interfaces()

std::vector< network_interface > seastar::net::posix_network_stack::network_interfaces ( )
overridevirtual

Returns available network interfaces. This represents a snapshot of interfaces available at call time, hence the return by value.

Reimplemented from seastar::network_stack.

◆ socket()

virtual ::seastar::socket seastar::net::posix_network_stack::socket ( )
overridevirtual

◆ supports_ipv6()

bool seastar::net::posix_network_stack::supports_ipv6 ( ) const
overridevirtual

Reimplemented from seastar::network_stack.


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