xtd 0.2.0
Loading...
Searching...
No Matches
xtd::net::sockets::socket_information Class Reference
Inheritance diagram for xtd::net::sockets::socket_information:
xtd::object

Definition

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

Encapsulates the information that is necessary to duplicate a xtd::net::sockets::socket.
Definition socket_information.hpp:33
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:42
#define core_export_
Define shared library export.
Definition core_export.hpp:13
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.

Public Constructors

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

Public Properties

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

Additional Inherited Members

- 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.
 
virtual type_object get_type () const noexcept
 Gets the type of the current instance.
 
template<typename object_t >
xtd::uptr< object_t > memberwise_clone () const
 Creates a shallow copy of the current object.
 
virtual xtd::string to_string () const noexcept
 Returns a xtd::string that represents the current object.
 
- Static Public Member Functions inherited from xtd::object
template<typename object_a_t , typename object_b_t >
static bool equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are considered equal.
 
template<typename object_a_t , typename object_b_t >
static bool reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are the same instance.
 

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: