#include <seastar/core/temporary_buffer.hh>
#include <seastar/core/iostream.hh>
#include <seastar/util/std-compat.hh>
+#include <seastar/util/program-options.hh>
#include "../core/internal/api-level.hh"
#include <sys/types.h>
/// Linux users should refer to protocol-specific manuals
/// to see available options, e.g. tcp(7), ip(7), etc.
int get_sockopt(int level, int optname, void* data, size_t len) const;
+ /// Local address of the socket
+ socket_address local_address() const noexcept;
/// Disables output to the socket.
///
virtual std::vector<network_interface> network_interfaces();
};
+struct network_stack_entry {
+ using factory_func = noncopyable_function<future<std::unique_ptr<network_stack>> (const program_options::option_group&)>;
+
+ sstring name;
+ std::unique_ptr<program_options::option_group> opts;
+ factory_func factory;
+ bool is_default;
+};
+
}