xtd 0.2.0
socket_shutdown.h
Go to the documentation of this file.
1 #pragma once
5 #include "../../enum.h"
6 
8 #undef unix
9 
12 namespace xtd {
14  namespace net {
16  namespace sockets {
29  enum class socket_shutdown {
31  receive = 0,
33  send = 1,
35  both = 2
36  };
37 
40  }
41  }
42 }
43 
45 template<> struct xtd::enum_register<xtd::net::sockets::socket_shutdown> {
47 };
Disables a xtd::net::sockets::socket for sending. This field is constant.
Disables a xtd::net::sockets::socket for receiving. This field is constant.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition: enum_collection.h:19
Disables a xtd::net::sockets::socket for both sending and receiving. This field is constant...
socket_shutdown
Defines constants that are used by the xtd::net::sockets::socket::shutdown method.
Definition: socket_shutdown.h:29
Provides the registration struct for enumerations.
Definition: enum_register.h:36