xtd - Reference Guide 0.2.0
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 {
29  class core_export_ ip_v6_multicast_option : public xtd::object {
30  public:
32 
35  ip_v6_multicast_option() = default;
38  explicit ip_v6_multicast_option(const xtd::net::ip_address& group);
42  ip_v6_multicast_option(const xtd::net::ip_address& group, uint32_t interface_index);
44 
48  ip_v6_multicast_option& operator =(const ip_v6_multicast_option&) = default;
49  friend std::ostream& operator <<(std::ostream& os, const ip_v6_multicast_option& mo) noexcept {return os << mo.to_string();}
51 
53 
57  const xtd::net::ip_address& group() const noexcept;
61  ip_v6_multicast_option& group(const xtd::net::ip_address& value) noexcept;
62 
66  uint32_t interface_index() const noexcept;
71  ip_v6_multicast_option& interface_index(uint32_t value) noexcept;
73 
74  private:
76  uint32_t interface_index_ = 0;
77  };
78  }
79  }
80 }
virtual xtd::ustring to_string() const noexcept
Returns a sxd::ustring that represents the current object.
Provides an Internet Protocol (IP) address.
Definition: ip_address.h:34
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:30
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:54
Contains option values for joining an IPv6 multicast group.
Definition: ip_v6_multicast_option.h:29