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.h:31
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
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.
 
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 >
std::unique_ptr< object_t > memberwise_clone () const noexcept
 Creates a shallow copy of the current object.
 
virtual xtd::ustring to_string () const noexcept
 Returns a sxd::ustring that represents the current object.
 
- 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.
 

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: