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 "../../string.h"
10
12namespace xtd {
14 namespace net {
16 namespace sockets {
33 public:
35
45 ip_v6_multicast_option(const xtd::net::ip_address& group, uint32 interface_index);
47
51 ip_v6_multicast_option& operator =(const ip_v6_multicast_option&) = default;
53
55
59 const xtd::net::ip_address& group() const noexcept;
63 ip_v6_multicast_option& group(const xtd::net::ip_address& value) noexcept;
64
68 uint32 interface_index() const noexcept;
73 ip_v6_multicast_option& interface_index(uint32 value) noexcept;
75
76 private:
77 xtd::net::ip_address group_ = xtd::net::ip_address::ip_v6_none;
78 uint32 interface_index_ = 0;
79 };
80 }
81 }
82}
Provides an Internet Protocol (IP) address.
Definition ip_address.h:37
Contains option values for joining an IPv6 multicast group.
Definition ip_v6_multicast_option.h:32
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:42
#define core_export_
Define shared library export.
Definition core_export.h:13
uint32_t uint32
Represents a 32-bit unsigned integer.
Definition uint32.h:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10