xtd 0.2.0
Loading...
Searching...
No Matches
ip_v6_multicast_option.h
Go to the documentation of this file.
1
4#pragma once
5#include "../ip_address.h"
6#include "../../core_export.h"
7#include "../../object.h"
8#include "../../types.h"
9#include "../../ustring.h"
10
12namespace xtd {
14 namespace net {
16 namespace sockets {
31 public:
33
43 ip_v6_multicast_option(const xtd::net::ip_address& group, uint32 interface_index);
45
49 ip_v6_multicast_option& operator =(const ip_v6_multicast_option&) = default;
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 interface_index() const noexcept;
71 ip_v6_multicast_option& interface_index(uint32 value) noexcept;
73
74 private:
75 xtd::net::ip_address group_ = xtd::net::ip_address::ip_v6_none;
76 uint32 interface_index_ = 0;
77 };
78 }
79 }
80}
Provides an Internet Protocol (IP) address.
Definition ip_address.h:35
Contains option values for joining an IPv6 multicast group.
Definition ip_v6_multicast_option.h:30
ip_v6_multicast_option()=default
Initializes a new instance of the xtd::net::sockets::ip_v6_multicast_option class.
ip_v6_multicast_option(const xtd::net::ip_address &group)
Initializes a new version of the xtd::net::sockets::ip_v6_multicast_option class for the specified IP...
ip_v6_multicast_option(const xtd::net::ip_address &group, uint32 interface_index)
Initializes a new instance of the xtd::net::sockets::ip_v6_multicast_option class with the specified ...
const xtd::net::ip_address & group() const noexcept
Gets the IP address of a multicast group.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:32
#define core_export_
Define shared library export.
Definition core_export.h:13
uint_least32_t uint32
Represents a 32-bit unsigned integer.
Definition types.h:241
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10