xtd - Reference Guide
0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
|
#include <multicast_option.h>
Contains IPAddress values used to join and drop multicast groups.
Parameter | Value |
---|---|
socket_option_level | xtd::net::sockets::socket_option_level::udp |
socket_option_name | xtd::net::sockets::socket_option_name::add_membership |
object | xtd::net::sockets::multicast_option |
Inherits xtd::object.
Public Member Functions | |
multicast_option ()=default | |
Initializes a new instance of the xtd::net::sockets::multicast_option class. | |
multicast_option (const xtd::net::ip_address &group) | |
Initializes a new version of the xtd::net::sockets::multicast_option class for the specified IP multicast group. | |
multicast_option (const xtd::net::ip_address &group, const xtd::net::ip_address &local_address) | |
Initializes a new instance of the xtd::net::sockets::multicast_option class with the specified IP multicast group and the local interface address. | |
multicast_option (const xtd::net::ip_address &group, uint32_t interface_index) | |
Initializes a new instance of the xtd::net::sockets::multicast_option class with the specified IP multicast group and the local interface address. | |
const xtd::net::ip_address & | group () const noexcept |
Gets the IP address of a multicast group. | |
multicast_option & | group (const xtd::net::ip_address &value) noexcept |
Sets the IP address of a multicast group. | |
uint32_t | interface_index () const noexcept |
Gets the interface index that is associated with a multicast group. | |
multicast_option & | interface_index (uint32_t value) |
Sets the interface index that is associated with a multicast group. | |
const xtd::net::ip_address & | local_address () const noexcept |
Gets the local IP address associated with a multicast group. | |
multicast_option & | local_address (const xtd::net::ip_address &value) noexcept |
Sets he local IP address associated with a multicast group. | |
Public Member Functions inherited from xtd::object | |
object ()=default | |
Create a new instance of the ultimate base class object. | |
virtual bool | equals (const object &obj) const noexcept |
Determines whether the specified object is equal to the current object. | |
virtual size_t | get_hash_code () const noexcept |
Serves as a hash function for a particular type. | |
template<typename object_t > | |
std::unique_ptr< object_t > | memberwise_clone () const |
Gets the type of the current instance. | |
virtual xtd::ustring | to_string () const noexcept |
Returns a std::string that represents the current object. | |
Additional Inherited Members | |
Static Public Member Functions inherited from xtd::object | |
static bool | equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are considered equal. | |
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are the same instance. | |
|
default |
Initializes a new instance of the xtd::net::sockets::multicast_option class.
xtd::net::sockets::multicast_option::multicast_option | ( | const xtd::net::ip_address & | group, |
const xtd::net::ip_address & | local_address | ||
) |
Initializes a new instance of the xtd::net::sockets::multicast_option class with the specified IP multicast group and the local interface address.
group | The xtd::net::ip_address of the multicast group. |
local_address | The local xtd::net::ip_address. |
xtd::net::sockets::multicast_option::multicast_option | ( | const xtd::net::ip_address & | group | ) |
Initializes a new version of the xtd::net::sockets::multicast_option class for the specified IP multicast group.
group | The xtd::net::ip_address of the multicast group. |
xtd::net::sockets::multicast_option::multicast_option | ( | const xtd::net::ip_address & | group, |
uint32_t | interface_index | ||
) |
Initializes a new instance of the xtd::net::sockets::multicast_option class with the specified IP multicast group and the local interface address.
group | The xtd::net::ip_address of the multicast group. |
interface_index | The address of the interface. |
xtd::argument_out_of_range_exception | interface_index > 0x00FFFFFF. |
|
noexcept |
Gets the IP address of a multicast group.
|
noexcept |
Sets the IP address of a multicast group.
value | An xtd::net::ip_address that contains the Internet address of a multicast group. |
|
noexcept |
Gets the interface index that is associated with a multicast group.
multicast_option & xtd::net::sockets::multicast_option::interface_index | ( | uint32_t | value | ) |
Sets the interface index that is associated with a multicast group.
value | A uint32_t value that specifies the address of the interface. |
xtd::argument_out_of_range_exception | value > 0x00FFFFFF. |
|
noexcept |
Gets the local IP address associated with a multicast group.
|
noexcept |
Sets he local IP address associated with a multicast group.
value | An xtd::net::ip_address that contains the local address associated with a multicast group. |