xtd 0.2.0
Loading...
Searching...
No Matches
socket_option_name.h
Go to the documentation of this file.
1
4#pragma once
5#include "../../enum.h"
6
8#undef unix
10
12namespace xtd {
14 namespace net {
16 namespace sockets {
31 enum class socket_option_name {
33 debug = 1,
37 reuse_address = 4,
39 keep_alive = 8,
41 dont_route = 16,
43 broadcast = 32,
45 use_loopback = 64,
47 linger = 128,
51 dont_linger = -129,
55 send_buffer = 4097,
57 receive_buffer = 4098,
59 send_low_water = 4099,
61 receive_low_water = 4100,
63 send_timeout = 4101,
65 receive_timeout = 4102,
67 error = 4103,
69 type = 4104,
71 max_connections = 2147483647,
73 ip_options = 1,
87 add_membership = 12,
89 drop_membership = 13,
91 dont_fragment = 14,
97 block_source = 17,
99 unblock_source = 18,
103 hop_limit = 21,
107 ip_v6_only = 27,
109 no_delay = 1,
111 bsd_urgent = 2,
113 expedited = 2,
115 no_checksum = 1,
119 update_accept_context = 28683,
122 };
123 }
124 }
125}
126
129 explicit operator auto() const noexcept {return xtd::enum_collection<xtd::net::sockets::socket_option_name> {{xtd::net::sockets::socket_option_name::debug, "debug"}, {xtd::net::sockets::socket_option_name::accept_connection, "accept_connection"}, {xtd::net::sockets::socket_option_name::reuse_address, "reuse_address"}, {xtd::net::sockets::socket_option_name::keep_alive, "keep_alive"}, {xtd::net::sockets::socket_option_name::dont_route, "dont_route"}, {xtd::net::sockets::socket_option_name::broadcast, "broadcast"}, {xtd::net::sockets::socket_option_name::use_loopback, "use_loopback"}, {xtd::net::sockets::socket_option_name::linger, "linger"}, {xtd::net::sockets::socket_option_name::out_of_band_inline, "out_of_band_inline"}, {xtd::net::sockets::socket_option_name::dont_linger, "dont_linger"}, {xtd::net::sockets::socket_option_name::exclusive_address_use, "exclusive_address_use"}, {xtd::net::sockets::socket_option_name::send_buffer, "send_buffer"}, {xtd::net::sockets::socket_option_name::receive_buffer, "receive_buffer"}, {xtd::net::sockets::socket_option_name::send_low_water, "send_low_water"}, {xtd::net::sockets::socket_option_name::receive_low_water, "receive_low_water"}, {xtd::net::sockets::socket_option_name::send_timeout, "send_timeout"}, {xtd::net::sockets::socket_option_name::receive_timeout, "receive_timeout"}, {xtd::net::sockets::socket_option_name::error, "error"}, {xtd::net::sockets::socket_option_name::type, "type"}, {xtd::net::sockets::socket_option_name::max_connections, "max_connections"}, {xtd::net::sockets::socket_option_name::type_of_service, "type_of_service"}, {xtd::net::sockets::socket_option_name::multicast_interface, "multicast_interface"}, {xtd::net::sockets::socket_option_name::multicast_time_to_live, "multicast_time_to_live"}, {xtd::net::sockets::socket_option_name::multicast_loopback, "multicast_loopback"}, {xtd::net::sockets::socket_option_name::add_membership, "add_membership"}, {xtd::net::sockets::socket_option_name::drop_membership, "drop_membership"}, {xtd::net::sockets::socket_option_name::block_source, "block_source"}, {xtd::net::sockets::socket_option_name::unblock_source, "unblock_source"}, {xtd::net::sockets::socket_option_name::packet_information, "packet_information"}, {xtd::net::sockets::socket_option_name::hop_limit, "hop_limit"}, {xtd::net::sockets::socket_option_name::ip_protection_level, "ip_protection_level"}, {xtd::net::sockets::socket_option_name::ip_v6_only, "ip_v6_only"}, {xtd::net::sockets::socket_option_name::checksum_coverage, "checksum_coverage"}, {xtd::net::sockets::socket_option_name::update_accept_context, "update_accept_context"}, {xtd::net::sockets::socket_option_name::update_connect_context, "update_connect_context"}};}
130};
std::type_info type
Stores information about a type.
Definition type.h:23
socket_option_name
Defines configuration option names.
Definition socket_option_name.h:31
ip_protection_level
A value that enables restriction of an IPv6 socket to a specified scope, such as addresses with the s...
Definition ip_protection_level.h:31
std::vector< xtd::collections::generic::key_value_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.h:22
@ max_connections
Not supported; will throw a xtd::net::sockets::socket_exception exception if used.
@ receive_timeout
Receive a time-out. This option applies only to synchronous methods; it has no effect on asynchronous...
@ update_connect_context
Updates a connected socket's properties by using those of an existing socket. This is equivalent to u...
@ dont_linger
Close the socket gracefully without lingering.
@ multicast_interface
Sets the interface for outgoing multicast packets.
@ add_source_membership
Join a source group.
@ hop_limit
Specifies the maximum number of router hops for an Internet Protocol version 6 (IPv6) packet....
@ exclusive_address_use
Enables a socket to be bound for exclusive access.
@ header_included
Indicates that the application provides the IP header for outgoing datagrams.
@ no_checksum
Send UDP datagrams with checksum set to zero.
@ type_of_service
Change the IP header type of the service field.
@ block_source
Block data from a source.
@ update_accept_context
Updates an accepted socket's properties by using those of an existing socket. This is equivalent to u...
@ drop_source_membership
Drop a source group.
@ expedited
Use expedited data as defined in RFC-1222. This option can be set only once; after it is set,...
@ packet_information
Return information about received packets.
@ use_loopback
Bypass hardware when possible.
@ ip_time_to_live
Sets the IP header Time-to-Live field.
@ send_buffer
Specifies the total per-socket buffer space reserved for sends. This is unrelated to the maximum mess...
@ reuse_address
Allows the socket to be bound to an address that is already in use.
@ bsd_urgent
Use urgent data as defined in RFC-1222. This option can be set only once; after it is set,...
@ multicast_time_to_live
An IP multicast Time to Live.
@ send_timeout
Send a time-out. This option applies only to synchronous methods; it has no effect on asynchronous me...
@ debug
Record debugging information.
@ no_delay
Disables the Nagle algorithm for send coalescing.
@ ip_protection_level
Enables restriction of a IPv6 socket to a specified scope, such as addresses with the same link local...
@ ip_options
Specifies the IP options to be inserted into outgoing datagrams.
@ dont_route
Do not route; send the packet directly to the interface addresses.
@ broadcast
Permit sending broadcast messages on the socket.
@ multicast_loopback
An IP multicast loopback.
@ out_of_band_inline
Receives out-of-band data in the normal data stream.
@ add_membership
Add an IP group membership.
@ send_low_water
Specifies the low water mark for xtd::net::sockets::socket::send operations.
@ error
Gets the error status and clear.
@ ip_v6_only
Indicates if a socket created for the AF_INET6 address family is restricted to IPv6 communications on...
@ accept_connection
The socket is listening.
@ checksum_coverage
Sets or get the UDP checksum coverage.
@ dont_fragment
Do not fragment IP datagrams.
@ drop_membership
Drop an IP group membership.
@ unblock_source
Unblock a previously blocked source.
@ receive_low_water
Specifies the low water mark for xtd::net::sockets::socket::receive operations.
@ linger
Linger on close if unsent data is present.
@ receive_buffer
Specifies the total per-socket buffer space reserved for receives. This is unrelated to the maximum m...
@ dont_route
Send without using routing tables.
@ broadcast
Indicates a broadcast packet.
@ multicast_interface
Sets the interface used for outgoing multicast packets. The interface is identified by its index....
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Provides the registration struct for enumerations.
Definition enum_register.h:38