xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
ip_v6_multicast_option.h
Go to the documentation of this file.
1 #pragma once
5 
6 #include "../../core_export.h"
7 #include "../../object.h"
8 #include "../../types.h"
9 #include "../../ustring.h"
10 #include "../ip_address.h"
11 
13 namespace xtd {
15  namespace net {
17  namespace sockets {
24  class core_export_ ip_v6_multicast_option : public xtd::object {
25  public:
27  ip_v6_multicast_option() = default;
34  ip_v6_multicast_option(const xtd::net::ip_address& group, uint32_t interface_index);
35 
39  ip_v6_multicast_option& operator=(const ip_v6_multicast_option&) = default;
40  friend std::ostream& operator <<(std::ostream& os, const ip_v6_multicast_option& mo) noexcept {return os << mo.to_string();}
42 
45  const xtd::net::ip_address& group() const noexcept;
49  ip_v6_multicast_option& group(const xtd::net::ip_address& value) noexcept;
50 
54  uint32_t interface_index() const noexcept;
59  ip_v6_multicast_option& interface_index(uint32_t value) noexcept;
60 
61  private:
63  uint32_t interface_index_ = 0;
64  };
65  }
66  }
67 }
virtual xtd::ustring to_string() const noexcept
Returns a std::string that represents the current object.
Provides an Internet Protocol (IP) address.
Definition: ip_address.h:30
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:26
static ip_address ip_v6_none
Provides an IP address that indicates that no network interface should be used. This field is constan...
Definition: ip_address.h:47
Contains option values for joining an IPv6 multicast group.
Definition: ip_v6_multicast_option.h:24