xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
net
sockets
socket_option_level.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
../../enum.hpp
"
6
8
#undef unix
10
12
namespace
xtd
{
14
namespace
net
{
16
namespace
sockets
{
31
enum class
socket_option_level
{
33
socket
= 65535,
35
ip
= 0,
37
ip_v6
= 41,
39
tcp
= 6,
41
udp
= 17,
42
};
43
}
44
}
45
}
46
48
template
<>
struct
xtd::enum_register
<
xtd
::
net::sockets::socket_option_level
> {
49
static
auto
values
()
noexcept
{
return
xtd::enum_collection<xtd::net::sockets::socket_option_level>
{{
xtd::net::sockets::socket_option_level::socket
,
"socket"
}, {
xtd::net::sockets::socket_option_level::ip
,
"ip"
}, {
xtd::net::sockets::socket_option_level::ip_v6
,
"ip_v6"
}, {
xtd::net::sockets::socket_option_level::tcp
,
"tcp"
}, {
xtd::net::sockets::socket_option_level::udp
,
"udp"
}};}
50
};
xtd::net::sockets::socket
Implements the Berkeley sockets interface.
Definition
socket.hpp:74
enum.hpp
Contains enum_ and enum_ut_ keywords.
xtd::enum_collection
std::vector< std::pair< enum_t, xtd::string > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition
enum_collection.hpp:24
xtd::net::sockets::socket_option_level
socket_option_level
Defines socket option levels for the xtd::net::sockets::socket::set_socket_option and xtd::net::socke...
Definition
socket_option_level.hpp:31
xtd::net::sockets::socket_option_level::ip_v6
@ ip_v6
Socket options apply only to IPv6 sockets.
Definition
socket_option_level.hpp:37
xtd::net::sockets::socket_option_level::socket
@ socket
Socket options apply to all sockets.
Definition
socket_option_level.hpp:33
xtd::net::sockets::socket_option_level::udp
@ udp
Socket options apply only to UDP sockets.
Definition
socket_option_level.hpp:41
xtd::net::sockets::socket_option_level::ip
@ ip
Socket options apply only to IP sockets.
Definition
socket_option_level.hpp:35
xtd::net::sockets::socket_option_level::tcp
@ tcp
Socket options apply only to TCP sockets.
Definition
socket_option_level.hpp:39
xtd::net::sockets::protocol_type::ip_v6
@ ip_v6
Internet Protocol version 6 (IPv6).
Definition
protocol_type.hpp:56
xtd::net::sockets::protocol_type::udp
@ udp
User Datagram Protocol.
Definition
protocol_type.hpp:52
xtd::net::sockets::protocol_type::ip
@ ip
Internet Protocol.
Definition
protocol_type.hpp:38
xtd::net::sockets::protocol_type::tcp
@ tcp
Transmission Control Protocol.
Definition
protocol_type.hpp:48
xtd::net::sockets
The xtd::net::sockets namespace provides a managed implementation of the Berkeley Sockets interface f...
Definition
address_family.hpp:16
xtd::net
The xtd::net namespace provides a simple programming interface for many of the protocols used on netw...
Definition
cookie_exception.hpp:10
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
xtd::enum_register
Provides the registration struct for enumerations.
Definition
enum_register.hpp:38
xtd::enum_register::values
static auto values() noexcept
Definition
enum_register.hpp:55
Generated on
for xtd by
Gammasoft
. All rights reserved.