xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
net
sockets
socket_async_operation.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
../../enum.hpp
"
6
8
#undef accept
10
12
namespace
xtd
{
14
namespace
net
{
16
namespace
sockets
{
32
enum class
socket_async_operation
{
34
none
= 0,
36
accept
= 1,
38
connect
= 2,
40
disconnect
= 3,
42
receive
= 4,
44
receive_from
= 5,
46
receive_message_from
= 6,
48
send
= 7,
50
send_packets
= 8,
52
send_to
= 9,
53
};
54
}
55
}
56
}
57
59
template
<>
struct
xtd::enum_register
<
xtd
::
net::sockets::socket_async_operation
> {
60
static
auto
values
()
noexcept
{
return
xtd::enum_collection<xtd::net::sockets::socket_async_operation>
{{
xtd::net::sockets::socket_async_operation::none
,
"none"
}, {
xtd::net::sockets::socket_async_operation::accept
,
"accept"
}, {
xtd::net::sockets::socket_async_operation::connect
,
"connect"
}, {
xtd::net::sockets::socket_async_operation::disconnect
,
"disconnect"
}, {
xtd::net::sockets::socket_async_operation::receive
,
"receive"
}, {
xtd::net::sockets::socket_async_operation::receive_from
,
"receive_from"
}, {
xtd::net::sockets::socket_async_operation::receive_message_from
,
"receive_message_from"
}, {
xtd::net::sockets::socket_async_operation::send
,
"send"
}, {
xtd::net::sockets::socket_async_operation::send_packets
,
"send_packets"
}, {
xtd::net::sockets::socket_async_operation::send_to
,
"send_to"
}};}
61
};
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_async_operation
socket_async_operation
The type of asynchronous socket operation most recently performed with this context object.
Definition
socket_async_operation.hpp:32
xtd::net::sockets::socket_async_operation::receive_message_from
@ receive_message_from
A socket receive_message_from operation.
Definition
socket_async_operation.hpp:46
xtd::net::sockets::socket_async_operation::send
@ send
A socket send operation.
Definition
socket_async_operation.hpp:48
xtd::net::sockets::socket_async_operation::none
@ none
none of the socket operations.
Definition
socket_async_operation.hpp:34
xtd::net::sockets::socket_async_operation::accept
@ accept
A socket accept operation.
Definition
socket_async_operation.hpp:36
xtd::net::sockets::socket_async_operation::send_packets
@ send_packets
A socket send_packets operation.
Definition
socket_async_operation.hpp:50
xtd::net::sockets::socket_async_operation::disconnect
@ disconnect
A socket disconnect operation.
Definition
socket_async_operation.hpp:40
xtd::net::sockets::socket_async_operation::receive_from
@ receive_from
A socket receive_from operation.
Definition
socket_async_operation.hpp:44
xtd::net::sockets::socket_async_operation::connect
@ connect
A socket connect operation.
Definition
socket_async_operation.hpp:38
xtd::net::sockets::socket_async_operation::send_to
@ send_to
A socket send_to operation.
Definition
socket_async_operation.hpp:52
xtd::net::sockets::socket_async_operation::receive
@ receive
A socket receive operation.
Definition
socket_async_operation.hpp:42
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.