xtd 0.2.0
xtd::net::sockets::socket_information Class Reference

Definition

Encapsulates the information that is necessary to duplicate a xtd::net::sockets::socket.

class core_export_ socket_information : public xtd::object
Inheritance
xtd::objectxtd::net::sockets::socket_information
Header
#include <xtd/net/sockets/socket_information>
Namespace
xtd::net::sockets
Library
xtd.core
Remarks
xtd::net::sockets::socket::duplicate_and_close creates a xtd::net::sockets::socket_information instance for use with the xtd::net::sockets::socket::socket constructor.

Constructors

 socket_information ()=default
 Initializes a new instance of the xtd::net::sockets::socket_information class. More...
 

Properties

xtd::net::sockets::socket_information_options options () const noexcept
 Gets the options for a xtd::net::sockets::socket. More...
 
socket_informationoptions (xtd::net::sockets::socket_information_options value) noexcept
 Sets the options for a xtd::net::sockets::socket. More...
 
const std::vector< xtd::byte > & protocol_information () const noexcept
 Gets the protocol information for a xtd::net::sockets::socket. More...
 
socket_informationprotocol_information (const std::vector< xtd::byte > &value) noexcept
 Sets the protocol information for a xtd::net::sockets::socket. More...
 

Additional Inherited Members

- Public Member Functions inherited from xtd::object
 object ()=default
 Create a new instance of the ultimate base class object. More...
 
bool equals (const object &obj) const noexcept
 Determines whether the specified object is equal to the current object. More...
 
virtual size_t get_hash_code () const noexcept
 Serves as a hash function for a particular type. More...
 
virtual type_object get_type () const noexcept
 Gets the type of the current instance. More...
 
template<typename object_t >
std::unique_ptr< object_t > memberwise_clone () const noexcept
 Creates a shallow copy of the current object. More...
 
virtual xtd::ustring to_string () const noexcept
 Returns a sxd::ustring that represents the current object. More...
 
- 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. More...
 
static bool reference_equals (const object &object_a, const object &object_b) noexcept
 Determines whether the specified object instances are the same instance. More...
 

Constructor & Destructor Documentation

◆ socket_information()

xtd::net::sockets::socket_information::socket_information ( )
default

Initializes a new instance of the xtd::net::sockets::socket_information class.

Member Function Documentation

◆ options() [1/2]

◆ options() [2/2]

◆ protocol_information() [1/2]

const std::vector<xtd::byte>& xtd::net::sockets::socket_information::protocol_information ( ) const
noexcept

Gets the protocol information for a xtd::net::sockets::socket.

Returns
An array of byte.

◆ protocol_information() [2/2]

socket_information& xtd::net::sockets::socket_information::protocol_information ( const std::vector< xtd::byte > &  value)
noexcept

Sets the protocol information for a xtd::net::sockets::socket.

Parameters
valueAn array of byte.
Returns
This current instance.

The documentation for this class was generated from the following file: