/
usr
/
include
/
boost
/
asio
/
detail
/
/usr/include/boost/asio/detail
mkdir
upload
Name
Size
Mode
Actions
impl/
-
0755
rm
array.hpp
1001
0644
edit
dl
rm
array_fwd.hpp
950
0644
edit
dl
rm
assert.hpp
968
0644
edit
dl
rm
atomic_count.hpp
1955
0644
edit
dl
rm
base_from_completion_cond.hpp
1795
0644
edit
dl
rm
bind_handler.hpp
28936
0644
edit
dl
rm
blocking_executor_op.hpp
2823
0644
edit
dl
rm
buffered_stream_storage.hpp
2987
0644
edit
dl
rm
buffer_resize_guard.hpp
1593
0644
edit
dl
rm
buffer_sequence_adapter.hpp
15582
0644
edit
dl
rm
bulk_executor_op.hpp
2785
0644
edit
dl
rm
call_stack.hpp
3003
0644
edit
dl
rm
chrono.hpp
2081
0644
edit
dl
rm
chrono_time_traits.hpp
4469
0644
edit
dl
rm
completion_handler.hpp
2832
0644
edit
dl
rm
concurrency_hint.hpp
4062
0644
edit
dl
rm
conditionally_enabled_event.hpp
3124
0644
edit
dl
rm
conditionally_enabled_mutex.hpp
3126
0644
edit
dl
rm
config.hpp
76667
0644
edit
dl
rm
consuming_buffers.hpp
10631
0644
edit
dl
rm
cstddef.hpp
816
0644
edit
dl
rm
cstdint.hpp
1558
0644
edit
dl
rm
date_time_fwd.hpp
792
0644
edit
dl
rm
deadline_timer_service.hpp
9241
0644
edit
dl
rm
dependent_type.hpp
891
0644
edit
dl
rm
descriptor_ops.hpp
4244
0644
edit
dl
rm
descriptor_read_op.hpp
4798
0644
edit
dl
rm
descriptor_write_op.hpp
4801
0644
edit
dl
rm
dev_poll_reactor.hpp
8039
0644
edit
dl
rm
epoll_reactor.hpp
9467
0644
edit
dl
rm
event.hpp
1364
0644
edit
dl
rm
eventfd_select_interrupter.hpp
2524
0644
edit
dl
rm
executor_function.hpp
4857
0644
edit
dl
rm
executor_op.hpp
2605
0644
edit
dl
rm
fd_set_adapter.hpp
1064
0644
edit
dl
rm
fenced_block.hpp
3066
0644
edit
dl
rm
functional.hpp
1014
0644
edit
dl
rm
future.hpp
1241
0644
edit
dl
rm
gcc_arm_fenced_block.hpp
2238
0644
edit
dl
rm
gcc_hppa_fenced_block.hpp
1560
0644
edit
dl
rm
gcc_sync_fenced_block.hpp
1679
0644
edit
dl
rm
gcc_x86_fenced_block.hpp
2460
0644
edit
dl
rm
global.hpp
1397
0644
edit
dl
rm
handler_alloc_helpers.hpp
8236
0644
edit
dl
rm
handler_cont_helpers.hpp
1364
0644
edit
dl
rm
handler_invoke_helpers.hpp
2715
0644
edit
dl
rm
handler_tracking.hpp
9182
0644
edit
dl
rm
handler_type_requirements.hpp
20351
0644
edit
dl
rm
handler_work.hpp
12302
0644
edit
dl
rm
hash_map.hpp
8343
0644
edit
dl
rm
io_control.hpp
1883
0644
edit
dl
rm
io_object_impl.hpp
5018
0644
edit
dl
rm
is_buffer_sequence.hpp
7953
0644
edit
dl
rm
is_executor.hpp
3033
0644
edit
dl
rm
keyword_tss_ptr.hpp
1425
0644
edit
dl
rm
kqueue_reactor.hpp
8277
0644
edit
dl
rm
limits.hpp
734
0644
edit
dl
rm
local_free_on_block_exit.hpp
1470
0644
edit
dl
rm
macos_fenced_block.hpp
1380
0644
edit
dl
rm
memory.hpp
2103
0644
edit
dl
rm
mutex.hpp
1351
0644
edit
dl
rm
noncopyable.hpp
1000
0644
edit
dl
rm
non_const_lvalue.hpp
1506
0644
edit
dl
rm
null_event.hpp
2197
0644
edit
dl
rm
null_fenced_block.hpp
1044
0644
edit
dl
rm
null_global.hpp
1295
0644
edit
dl
rm
null_mutex.hpp
1255
0644
edit
dl
rm
null_reactor.hpp
1563
0644
edit
dl
rm
null_signal_blocker.hpp
1627
0644
edit
dl
rm
null_socket_service.hpp
17283
0644
edit
dl
rm
null_static_mutex.hpp
1259
0644
edit
dl
rm
null_thread.hpp
1442
0644
edit
dl
rm
null_tss_ptr.hpp
1272
0644
edit
dl
rm
object_pool.hpp
3500
0644
edit
dl
rm
old_win_sdk_compat.hpp
4478
0644
edit
dl
rm
operation.hpp
963
0644
edit
dl
rm
op_queue.hpp
3313
0644
edit
dl
rm
pipe_select_interrupter.hpp
2603
0644
edit
dl
rm
pop_options.hpp
2877
0644
edit
dl
rm
posix_event.hpp
4548
0644
edit
dl
rm
posix_fd_set_adapter.hpp
2992
0644
edit
dl
rm
posix_global.hpp
1807
0644
edit
dl
rm
posix_mutex.hpp
1685
0644
edit
dl
rm
posix_signal_blocker.hpp
1975
0644
edit
dl
rm
posix_static_mutex.hpp
1467
0644
edit
dl
rm
posix_thread.hpp
2187
0644
edit
dl
rm
posix_tss_ptr.hpp
1800
0644
edit
dl
rm
push_options.hpp
4679
0644
edit
dl
rm
reactive_descriptor_service.hpp
14507
0644
edit
dl
rm
reactive_null_buffers_op.hpp
3300
0644
edit
dl
rm
reactive_serial_port_service.hpp
8314
0644
edit
dl
rm
reactive_socket_accept_op.hpp
8322
0644
edit
dl
rm
reactive_socket_connect_op.hpp
4010
0644
edit
dl
rm
reactive_socket_recvfrom_op.hpp
5660
0644
edit
dl
rm
reactive_socket_recvmsg_op.hpp
5012
0644
edit
dl
rm
reactive_socket_recv_op.hpp
5433
0644
edit
dl
rm
reactive_socket_sendto_op.hpp
5362
0644
edit
dl
rm
reactive_socket_send_op.hpp
5530
0644
edit
dl
rm
reactive_socket_service.hpp
18653
0644
edit
dl
rm
reactive_socket_service_base.hpp
19681
0644
edit
dl
rm
reactive_wait_op.hpp
3153
0644
edit
dl
rm
reactor.hpp
1003
0644
edit
dl
rm
reactor_fwd.hpp
1155
0644
edit
dl
rm
reactor_op.hpp
1763
0644
edit
dl
rm
reactor_op_queue.hpp
4979
0644
edit
dl
rm
recycling_allocator.hpp
2467
0644
edit
dl
rm
regex_fwd.hpp
846
0644
edit
dl
rm
resolver_service.hpp
4806
0644
edit
dl
rm
resolver_service_base.hpp
4392
0644
edit
dl
rm
resolve_endpoint_op.hpp
4900
0644
edit
dl
rm
resolve_op.hpp
1090
0644
edit
dl
rm
resolve_query_op.hpp
5034
0644
edit
dl
rm
scheduler.hpp
7609
0644
edit
dl
rm
scheduler_operation.hpp
1922
0644
edit
dl
rm
scheduler_thread_info.hpp
1079
0644
edit
dl
rm
scoped_lock.hpp
1942
0644
edit
dl
rm
scoped_ptr.hpp
1448
0644
edit
dl
rm
select_interrupter.hpp
1426
0644
edit
dl
rm
select_reactor.hpp
8813
0644
edit
dl
rm
service_registry.hpp
5645
0644
edit
dl
rm
signal_blocker.hpp
1382
0644
edit
dl
rm
signal_handler.hpp
2931
0644
edit
dl
rm
signal_init.hpp
1070
0644
edit
dl
rm
signal_op.hpp
1146
0644
edit
dl
rm
signal_set_service.hpp
7018
0644
edit
dl
rm
socket_holder.hpp
2148
0644
edit
dl
rm
socket_ops.hpp
13917
0644
edit
dl
rm
socket_option.hpp
6410
0644
edit
dl
rm
socket_select_interrupter.hpp
2620
0644
edit
dl
rm
socket_types.hpp
16173
0644
edit
dl
rm
solaris_fenced_block.hpp
1338
0644
edit
dl
rm
source_location.hpp
1460
0644
edit
dl
rm
static_mutex.hpp
1745
0644
edit
dl
rm
std_event.hpp
4029
0644
edit
dl
rm
std_fenced_block.hpp
1408
0644
edit
dl
rm
std_global.hpp
1568
0644
edit
dl
rm
std_mutex.hpp
1404
0644
edit
dl
rm
std_static_mutex.hpp
1586
0644
edit
dl
rm
std_thread.hpp
1425
0644
edit
dl
rm
strand_executor_service.hpp
6110
0644
edit
dl
rm
strand_service.hpp
4896
0644
edit
dl
rm
string_view.hpp
1574
0644
edit
dl
rm
thread.hpp
1658
0644
edit
dl
rm
thread_context.hpp
1135
0644
edit
dl
rm
thread_group.hpp
1993
0644
edit
dl
rm
thread_info_base.hpp
4979
0644
edit
dl
rm
throw_error.hpp
1377
0644
edit
dl
rm
throw_exception.hpp
1512
0644
edit
dl
rm
timer_queue.hpp
9873
0644
edit
dl
rm
timer_queue_base.hpp
1754
0644
edit
dl
rm
timer_queue_ptime.hpp
3132
0644
edit
dl
rm
timer_queue_set.hpp
1805
0644
edit
dl
rm
timer_scheduler.hpp
1157
0644
edit
dl
rm
timer_scheduler_fwd.hpp
1225
0644
edit
dl
rm
tss_ptr.hpp
1883
0644
edit
dl
rm
type_traits.hpp
5070
0644
edit
dl
rm
variadic_templates.hpp
13229
0644
edit
dl
rm
wait_handler.hpp
2864
0644
edit
dl
rm
wait_op.hpp
1021
0644
edit
dl
rm
winapp_thread.hpp
2740
0644
edit
dl
rm
wince_thread.hpp
2683
0644
edit
dl
rm
winrt_async_manager.hpp
9024
0644
edit
dl
rm
winrt_async_op.hpp
1487
0644
edit
dl
rm
winrt_resolver_service.hpp
6302
0644
edit
dl
rm
winrt_resolve_op.hpp
4062
0644
edit
dl
rm
winrt_socket_connect_op.hpp
3237
0644
edit
dl
rm
winrt_socket_recv_op.hpp
4042
0644
edit
dl
rm
winrt_socket_send_op.hpp
3677
0644
edit
dl
rm
winrt_ssocket_service.hpp
7455
0644
edit
dl
rm
winrt_ssocket_service_base.hpp
12870
0644
edit
dl
rm
winrt_timer_scheduler.hpp
4839
0644
edit
dl
rm
winrt_utils.hpp
2760
0644
edit
dl
rm
winsock_init.hpp
3232
0644
edit
dl
rm
win_event.hpp
3936
0644
edit
dl
rm
win_fd_set_adapter.hpp
3911
0644
edit
dl
rm
win_fenced_block.hpp
2138
0644
edit
dl
rm
win_global.hpp
1790
0644
edit
dl
rm
win_iocp_handle_read_op.hpp
3956
0644
edit
dl
rm
win_iocp_handle_service.hpp
12900
0644
edit
dl
rm
win_iocp_handle_write_op.hpp
3758
0644
edit
dl
rm
win_iocp_io_context.hpp
11747
0644
edit
dl
rm
win_iocp_null_buffers_op.hpp
4098
0644
edit
dl
rm
win_iocp_operation.hpp
2187
0644
edit
dl
rm
win_iocp_overlapped_op.hpp
3186
0644
edit
dl
rm
win_iocp_overlapped_ptr.hpp
4418
0644
edit
dl
rm
win_iocp_serial_port_service.hpp
7981
0644
edit
dl
rm
win_iocp_socket_accept_op.hpp
10210
0644
edit
dl
rm
win_iocp_socket_connect_op.hpp
4146
0644
edit
dl
rm
win_iocp_socket_recvfrom_op.hpp
4394
0644
edit
dl
rm
win_iocp_socket_recvmsg_op.hpp
4211
0644
edit
dl
rm
win_iocp_socket_recv_op.hpp
4232
0644
edit
dl
rm
win_iocp_socket_send_op.hpp
3975
0644
edit
dl
rm
win_iocp_socket_service.hpp
20209
0644
edit
dl
rm
win_iocp_socket_service_base.hpp
23493
0644
edit
dl
rm
win_iocp_thread_info.hpp
903
0644
edit
dl
rm
win_iocp_wait_op.hpp
4016
0644
edit
dl
rm
win_mutex.hpp
1832
0644
edit
dl
rm
win_object_handle_service.hpp
6401
0644
edit
dl
rm
win_static_mutex.hpp
1937
0644
edit
dl
rm
win_thread.hpp
3233
0644
edit
dl
rm
win_tss_ptr.hpp
1744
0644
edit
dl
rm
work_dispatcher.hpp
4111
0644
edit
dl
rm
wrapped_handler.hpp
9882
0644
edit
dl
rm
Edit:
/usr/include/boost/asio/detail/socket_types.hpp
(16173B)
// // detail/socket_types.hpp // ~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef BOOST_ASIO_DETAIL_SOCKET_TYPES_HPP #define BOOST_ASIO_DETAIL_SOCKET_TYPES_HPP #if defined(_MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) #include <boost/asio/detail/config.hpp> #if defined(BOOST_ASIO_WINDOWS_RUNTIME) // Empty. #elif defined(BOOST_ASIO_WINDOWS) || defined(__CYGWIN__) # if defined(_WINSOCKAPI_) && !defined(_WINSOCK2API_) # error WinSock.h has already been included # endif // defined(_WINSOCKAPI_) && !defined(_WINSOCK2API_) # if defined(__BORLANDC__) # include <stdlib.h> // Needed for __errno # if !defined(_WSPIAPI_H_) # define _WSPIAPI_H_ # define BOOST_ASIO_WSPIAPI_H_DEFINED # endif // !defined(_WSPIAPI_H_) # endif // defined(__BORLANDC__) # include <winsock2.h> # include <ws2tcpip.h> # if defined(WINAPI_FAMILY) # if ((WINAPI_FAMILY & WINAPI_PARTITION_DESKTOP) != 0) # include <windows.h> # endif // ((WINAPI_FAMILY & WINAPI_PARTITION_DESKTOP) != 0) # endif // defined(WINAPI_FAMILY) # if !defined(BOOST_ASIO_WINDOWS_APP) # include <mswsock.h> # endif // !defined(BOOST_ASIO_WINDOWS_APP) # if defined(BOOST_ASIO_WSPIAPI_H_DEFINED) # undef _WSPIAPI_H_ # undef BOOST_ASIO_WSPIAPI_H_DEFINED # endif // defined(BOOST_ASIO_WSPIAPI_H_DEFINED) # if !defined(BOOST_ASIO_NO_DEFAULT_LINKED_LIBS) # if defined(UNDER_CE) # pragma comment(lib, "ws2.lib") # elif defined(_MSC_VER) || defined(__BORLANDC__) # pragma comment(lib, "ws2_32.lib") # if !defined(BOOST_ASIO_WINDOWS_APP) # pragma comment(lib, "mswsock.lib") # endif // !defined(BOOST_ASIO_WINDOWS_APP) # endif // defined(_MSC_VER) || defined(__BORLANDC__) # endif // !defined(BOOST_ASIO_NO_DEFAULT_LINKED_LIBS) # include <boost/asio/detail/old_win_sdk_compat.hpp> #else # include <sys/ioctl.h> # if (defined(__MACH__) && defined(__APPLE__)) \ || defined(__FreeBSD__) || defined(__NetBSD__) \ || defined(__OpenBSD__) || defined(__linux__) \ || defined(__EMSCRIPTEN__) # include <poll.h> # elif !defined(__SYMBIAN32__) # include <sys/poll.h> # endif # include <sys/types.h> # include <sys/stat.h> # include <fcntl.h> # if defined(__hpux) # include <sys/time.h> # endif # if !defined(__hpux) || defined(__SELECT) # include <sys/select.h> # endif # include <sys/socket.h> # include <sys/uio.h> # include <sys/un.h> # include <netinet/in.h> # if !defined(__SYMBIAN32__) # include <netinet/tcp.h> # endif # include <arpa/inet.h> # include <netdb.h> # include <net/if.h> # include <limits.h> # if defined(__sun) # include <sys/filio.h> # include <sys/sockio.h> # endif #endif #include <boost/asio/detail/push_options.hpp> namespace boost { namespace asio { namespace detail { #if defined(BOOST_ASIO_WINDOWS_RUNTIME) const int max_addr_v4_str_len = 256; const int max_addr_v6_str_len = 256; typedef unsigned __int32 u_long_type; typedef unsigned __int16 u_short_type; struct in4_addr_type { u_long_type s_addr; }; struct in4_mreq_type { in4_addr_type imr_multiaddr, imr_interface; }; struct in6_addr_type { unsigned char s6_addr[16]; }; struct in6_mreq_type { in6_addr_type ipv6mr_multiaddr; unsigned long ipv6mr_interface; }; struct socket_addr_type { int sa_family; }; struct sockaddr_in4_type { int sin_family; in4_addr_type sin_addr; u_short_type sin_port; }; struct sockaddr_in6_type { int sin6_family; in6_addr_type sin6_addr; u_short_type sin6_port; u_long_type sin6_flowinfo; u_long_type sin6_scope_id; }; struct sockaddr_storage_type { int ss_family; unsigned char ss_bytes[128 - sizeof(int)]; }; struct addrinfo_type { int ai_flags; int ai_family, ai_socktype, ai_protocol; int ai_addrlen; const void* ai_addr; const char* ai_canonname; addrinfo_type* ai_next; }; struct linger_type { u_short_type l_onoff, l_linger; }; typedef u_long_type ioctl_arg_type; typedef int signed_size_type; # define BOOST_ASIO_OS_DEF(c) BOOST_ASIO_OS_DEF_##c # define BOOST_ASIO_OS_DEF_AF_UNSPEC 0 # define BOOST_ASIO_OS_DEF_AF_INET 2 # define BOOST_ASIO_OS_DEF_AF_INET6 23 # define BOOST_ASIO_OS_DEF_SOCK_STREAM 1 # define BOOST_ASIO_OS_DEF_SOCK_DGRAM 2 # define BOOST_ASIO_OS_DEF_SOCK_RAW 3 # define BOOST_ASIO_OS_DEF_SOCK_SEQPACKET 5 # define BOOST_ASIO_OS_DEF_IPPROTO_IP 0 # define BOOST_ASIO_OS_DEF_IPPROTO_IPV6 41 # define BOOST_ASIO_OS_DEF_IPPROTO_TCP 6 # define BOOST_ASIO_OS_DEF_IPPROTO_UDP 17 # define BOOST_ASIO_OS_DEF_IPPROTO_ICMP 1 # define BOOST_ASIO_OS_DEF_IPPROTO_ICMPV6 58 # define BOOST_ASIO_OS_DEF_FIONBIO 1 # define BOOST_ASIO_OS_DEF_FIONREAD 2 # define BOOST_ASIO_OS_DEF_INADDR_ANY 0 # define BOOST_ASIO_OS_DEF_MSG_OOB 0x1 # define BOOST_ASIO_OS_DEF_MSG_PEEK 0x2 # define BOOST_ASIO_OS_DEF_MSG_DONTROUTE 0x4 # define BOOST_ASIO_OS_DEF_MSG_EOR 0 // Not supported. # define BOOST_ASIO_OS_DEF_SHUT_RD 0x0 # define BOOST_ASIO_OS_DEF_SHUT_WR 0x1 # define BOOST_ASIO_OS_DEF_SHUT_RDWR 0x2 # define BOOST_ASIO_OS_DEF_SOMAXCONN 0x7fffffff # define BOOST_ASIO_OS_DEF_SOL_SOCKET 0xffff # define BOOST_ASIO_OS_DEF_SO_BROADCAST 0x20 # define BOOST_ASIO_OS_DEF_SO_DEBUG 0x1 # define BOOST_ASIO_OS_DEF_SO_DONTROUTE 0x10 # define BOOST_ASIO_OS_DEF_SO_KEEPALIVE 0x8 # define BOOST_ASIO_OS_DEF_SO_LINGER 0x80 # define BOOST_ASIO_OS_DEF_SO_OOBINLINE 0x100 # define BOOST_ASIO_OS_DEF_SO_SNDBUF 0x1001 # define BOOST_ASIO_OS_DEF_SO_RCVBUF 0x1002 # define BOOST_ASIO_OS_DEF_SO_SNDLOWAT 0x1003 # define BOOST_ASIO_OS_DEF_SO_RCVLOWAT 0x1004 # define BOOST_ASIO_OS_DEF_SO_REUSEADDR 0x4 # define BOOST_ASIO_OS_DEF_TCP_NODELAY 0x1 # define BOOST_ASIO_OS_DEF_IP_MULTICAST_IF 2 # define BOOST_ASIO_OS_DEF_IP_MULTICAST_TTL 3 # define BOOST_ASIO_OS_DEF_IP_MULTICAST_LOOP 4 # define BOOST_ASIO_OS_DEF_IP_ADD_MEMBERSHIP 5 # define BOOST_ASIO_OS_DEF_IP_DROP_MEMBERSHIP 6 # define BOOST_ASIO_OS_DEF_IP_TTL 7 # define BOOST_ASIO_OS_DEF_IPV6_UNICAST_HOPS 4 # define BOOST_ASIO_OS_DEF_IPV6_MULTICAST_IF 9 # define BOOST_ASIO_OS_DEF_IPV6_MULTICAST_HOPS 10 # define BOOST_ASIO_OS_DEF_IPV6_MULTICAST_LOOP 11 # define BOOST_ASIO_OS_DEF_IPV6_JOIN_GROUP 12 # define BOOST_ASIO_OS_DEF_IPV6_LEAVE_GROUP 13 # define BOOST_ASIO_OS_DEF_AI_CANONNAME 0x2 # define BOOST_ASIO_OS_DEF_AI_PASSIVE 0x1 # define BOOST_ASIO_OS_DEF_AI_NUMERICHOST 0x4 # define BOOST_ASIO_OS_DEF_AI_NUMERICSERV 0x8 # define BOOST_ASIO_OS_DEF_AI_V4MAPPED 0x800 # define BOOST_ASIO_OS_DEF_AI_ALL 0x100 # define BOOST_ASIO_OS_DEF_AI_ADDRCONFIG 0x400 #elif defined(BOOST_ASIO_WINDOWS) || defined(__CYGWIN__) typedef SOCKET socket_type; const SOCKET invalid_socket = INVALID_SOCKET; const int socket_error_retval = SOCKET_ERROR; const int max_addr_v4_str_len = 256; const int max_addr_v6_str_len = 256; typedef sockaddr socket_addr_type; typedef in_addr in4_addr_type; typedef ip_mreq in4_mreq_type; typedef sockaddr_in sockaddr_in4_type; # if defined(BOOST_ASIO_HAS_OLD_WIN_SDK) typedef in6_addr_emulation in6_addr_type; typedef ipv6_mreq_emulation in6_mreq_type; typedef sockaddr_in6_emulation sockaddr_in6_type; typedef sockaddr_storage_emulation sockaddr_storage_type; typedef addrinfo_emulation addrinfo_type; # else typedef in6_addr in6_addr_type; typedef ipv6_mreq in6_mreq_type; typedef sockaddr_in6 sockaddr_in6_type; typedef sockaddr_storage sockaddr_storage_type; typedef addrinfo addrinfo_type; # endif typedef ::linger linger_type; typedef unsigned long ioctl_arg_type; typedef u_long u_long_type; typedef u_short u_short_type; typedef int signed_size_type; # define BOOST_ASIO_OS_DEF(c) BOOST_ASIO_OS_DEF_##c # define BOOST_ASIO_OS_DEF_AF_UNSPEC AF_UNSPEC # define BOOST_ASIO_OS_DEF_AF_INET AF_INET # define BOOST_ASIO_OS_DEF_AF_INET6 AF_INET6 # define BOOST_ASIO_OS_DEF_SOCK_STREAM SOCK_STREAM # define BOOST_ASIO_OS_DEF_SOCK_DGRAM SOCK_DGRAM # define BOOST_ASIO_OS_DEF_SOCK_RAW SOCK_RAW # define BOOST_ASIO_OS_DEF_SOCK_SEQPACKET SOCK_SEQPACKET # define BOOST_ASIO_OS_DEF_IPPROTO_IP IPPROTO_IP # define BOOST_ASIO_OS_DEF_IPPROTO_IPV6 IPPROTO_IPV6 # define BOOST_ASIO_OS_DEF_IPPROTO_TCP IPPROTO_TCP # define BOOST_ASIO_OS_DEF_IPPROTO_UDP IPPROTO_UDP # define BOOST_ASIO_OS_DEF_IPPROTO_ICMP IPPROTO_ICMP # define BOOST_ASIO_OS_DEF_IPPROTO_ICMPV6 IPPROTO_ICMPV6 # define BOOST_ASIO_OS_DEF_FIONBIO FIONBIO # define BOOST_ASIO_OS_DEF_FIONREAD FIONREAD # define BOOST_ASIO_OS_DEF_INADDR_ANY INADDR_ANY # define BOOST_ASIO_OS_DEF_MSG_OOB MSG_OOB # define BOOST_ASIO_OS_DEF_MSG_PEEK MSG_PEEK # define BOOST_ASIO_OS_DEF_MSG_DONTROUTE MSG_DONTROUTE # define BOOST_ASIO_OS_DEF_MSG_EOR 0 // Not supported on Windows. # define BOOST_ASIO_OS_DEF_SHUT_RD SD_RECEIVE # define BOOST_ASIO_OS_DEF_SHUT_WR SD_SEND # define BOOST_ASIO_OS_DEF_SHUT_RDWR SD_BOTH # define BOOST_ASIO_OS_DEF_SOMAXCONN SOMAXCONN # define BOOST_ASIO_OS_DEF_SOL_SOCKET SOL_SOCKET # define BOOST_ASIO_OS_DEF_SO_BROADCAST SO_BROADCAST # define BOOST_ASIO_OS_DEF_SO_DEBUG SO_DEBUG # define BOOST_ASIO_OS_DEF_SO_DONTROUTE SO_DONTROUTE # define BOOST_ASIO_OS_DEF_SO_KEEPALIVE SO_KEEPALIVE # define BOOST_ASIO_OS_DEF_SO_LINGER SO_LINGER # define BOOST_ASIO_OS_DEF_SO_OOBINLINE SO_OOBINLINE # define BOOST_ASIO_OS_DEF_SO_SNDBUF SO_SNDBUF # define BOOST_ASIO_OS_DEF_SO_RCVBUF SO_RCVBUF # define BOOST_ASIO_OS_DEF_SO_SNDLOWAT SO_SNDLOWAT # define BOOST_ASIO_OS_DEF_SO_RCVLOWAT SO_RCVLOWAT # define BOOST_ASIO_OS_DEF_SO_REUSEADDR SO_REUSEADDR # define BOOST_ASIO_OS_DEF_TCP_NODELAY TCP_NODELAY # define BOOST_ASIO_OS_DEF_IP_MULTICAST_IF IP_MULTICAST_IF # define BOOST_ASIO_OS_DEF_IP_MULTICAST_TTL IP_MULTICAST_TTL # define BOOST_ASIO_OS_DEF_IP_MULTICAST_LOOP IP_MULTICAST_LOOP # define BOOST_ASIO_OS_DEF_IP_ADD_MEMBERSHIP IP_ADD_MEMBERSHIP # define BOOST_ASIO_OS_DEF_IP_DROP_MEMBERSHIP IP_DROP_MEMBERSHIP # define BOOST_ASIO_OS_DEF_IP_TTL IP_TTL # define BOOST_ASIO_OS_DEF_IPV6_UNICAST_HOPS IPV6_UNICAST_HOPS # define BOOST_ASIO_OS_DEF_IPV6_MULTICAST_IF IPV6_MULTICAST_IF # define BOOST_ASIO_OS_DEF_IPV6_MULTICAST_HOPS IPV6_MULTICAST_HOPS # define BOOST_ASIO_OS_DEF_IPV6_MULTICAST_LOOP IPV6_MULTICAST_LOOP # define BOOST_ASIO_OS_DEF_IPV6_JOIN_GROUP IPV6_JOIN_GROUP # define BOOST_ASIO_OS_DEF_IPV6_LEAVE_GROUP IPV6_LEAVE_GROUP # define BOOST_ASIO_OS_DEF_AI_CANONNAME AI_CANONNAME # define BOOST_ASIO_OS_DEF_AI_PASSIVE AI_PASSIVE # define BOOST_ASIO_OS_DEF_AI_NUMERICHOST AI_NUMERICHOST # if defined(AI_NUMERICSERV) # define BOOST_ASIO_OS_DEF_AI_NUMERICSERV AI_NUMERICSERV # else # define BOOST_ASIO_OS_DEF_AI_NUMERICSERV 0 # endif # if defined(AI_V4MAPPED) # define BOOST_ASIO_OS_DEF_AI_V4MAPPED AI_V4MAPPED # else # define BOOST_ASIO_OS_DEF_AI_V4MAPPED 0 # endif # if defined(AI_ALL) # define BOOST_ASIO_OS_DEF_AI_ALL AI_ALL # else # define BOOST_ASIO_OS_DEF_AI_ALL 0 # endif # if defined(AI_ADDRCONFIG) # define BOOST_ASIO_OS_DEF_AI_ADDRCONFIG AI_ADDRCONFIG # else # define BOOST_ASIO_OS_DEF_AI_ADDRCONFIG 0 # endif # if defined (_WIN32_WINNT) const int max_iov_len = 64; # else const int max_iov_len = 16; # endif #else typedef int socket_type; const int invalid_socket = -1; const int socket_error_retval = -1; const int max_addr_v4_str_len = INET_ADDRSTRLEN; #if defined(INET6_ADDRSTRLEN) const int max_addr_v6_str_len = INET6_ADDRSTRLEN + 1 + IF_NAMESIZE; #else // defined(INET6_ADDRSTRLEN) const int max_addr_v6_str_len = 256; #endif // defined(INET6_ADDRSTRLEN) typedef sockaddr socket_addr_type; typedef in_addr in4_addr_type; # if defined(__hpux) // HP-UX doesn't provide ip_mreq when _XOPEN_SOURCE_EXTENDED is defined. struct in4_mreq_type { struct in_addr imr_multiaddr; struct in_addr imr_interface; }; # else typedef ip_mreq in4_mreq_type; # endif typedef sockaddr_in sockaddr_in4_type; typedef in6_addr in6_addr_type; typedef ipv6_mreq in6_mreq_type; typedef sockaddr_in6 sockaddr_in6_type; typedef sockaddr_storage sockaddr_storage_type; typedef sockaddr_un sockaddr_un_type; typedef addrinfo addrinfo_type; typedef ::linger linger_type; typedef int ioctl_arg_type; typedef uint32_t u_long_type; typedef uint16_t u_short_type; #if defined(BOOST_ASIO_HAS_SSIZE_T) typedef ssize_t signed_size_type; #else // defined(BOOST_ASIO_HAS_SSIZE_T) typedef int signed_size_type; #endif // defined(BOOST_ASIO_HAS_SSIZE_T) # define BOOST_ASIO_OS_DEF(c) BOOST_ASIO_OS_DEF_##c # define BOOST_ASIO_OS_DEF_AF_UNSPEC AF_UNSPEC # define BOOST_ASIO_OS_DEF_AF_INET AF_INET # define BOOST_ASIO_OS_DEF_AF_INET6 AF_INET6 # define BOOST_ASIO_OS_DEF_SOCK_STREAM SOCK_STREAM # define BOOST_ASIO_OS_DEF_SOCK_DGRAM SOCK_DGRAM # define BOOST_ASIO_OS_DEF_SOCK_RAW SOCK_RAW # define BOOST_ASIO_OS_DEF_SOCK_SEQPACKET SOCK_SEQPACKET # define BOOST_ASIO_OS_DEF_IPPROTO_IP IPPROTO_IP # define BOOST_ASIO_OS_DEF_IPPROTO_IPV6 IPPROTO_IPV6 # define BOOST_ASIO_OS_DEF_IPPROTO_TCP IPPROTO_TCP # define BOOST_ASIO_OS_DEF_IPPROTO_UDP IPPROTO_UDP # define BOOST_ASIO_OS_DEF_IPPROTO_ICMP IPPROTO_ICMP # define BOOST_ASIO_OS_DEF_IPPROTO_ICMPV6 IPPROTO_ICMPV6 # define BOOST_ASIO_OS_DEF_FIONBIO FIONBIO # define BOOST_ASIO_OS_DEF_FIONREAD FIONREAD # define BOOST_ASIO_OS_DEF_INADDR_ANY INADDR_ANY # define BOOST_ASIO_OS_DEF_MSG_OOB MSG_OOB # define BOOST_ASIO_OS_DEF_MSG_PEEK MSG_PEEK # define BOOST_ASIO_OS_DEF_MSG_DONTROUTE MSG_DONTROUTE # define BOOST_ASIO_OS_DEF_MSG_EOR MSG_EOR # define BOOST_ASIO_OS_DEF_SHUT_RD SHUT_RD # define BOOST_ASIO_OS_DEF_SHUT_WR SHUT_WR # define BOOST_ASIO_OS_DEF_SHUT_RDWR SHUT_RDWR # define BOOST_ASIO_OS_DEF_SOMAXCONN SOMAXCONN # define BOOST_ASIO_OS_DEF_SOL_SOCKET SOL_SOCKET # define BOOST_ASIO_OS_DEF_SO_BROADCAST SO_BROADCAST # define BOOST_ASIO_OS_DEF_SO_DEBUG SO_DEBUG # define BOOST_ASIO_OS_DEF_SO_DONTROUTE SO_DONTROUTE # define BOOST_ASIO_OS_DEF_SO_KEEPALIVE SO_KEEPALIVE # define BOOST_ASIO_OS_DEF_SO_LINGER SO_LINGER # define BOOST_ASIO_OS_DEF_SO_OOBINLINE SO_OOBINLINE # define BOOST_ASIO_OS_DEF_SO_SNDBUF SO_SNDBUF # define BOOST_ASIO_OS_DEF_SO_RCVBUF SO_RCVBUF # define BOOST_ASIO_OS_DEF_SO_SNDLOWAT SO_SNDLOWAT # define BOOST_ASIO_OS_DEF_SO_RCVLOWAT SO_RCVLOWAT # define BOOST_ASIO_OS_DEF_SO_REUSEADDR SO_REUSEADDR # define BOOST_ASIO_OS_DEF_TCP_NODELAY TCP_NODELAY # define BOOST_ASIO_OS_DEF_IP_MULTICAST_IF IP_MULTICAST_IF # define BOOST_ASIO_OS_DEF_IP_MULTICAST_TTL IP_MULTICAST_TTL # define BOOST_ASIO_OS_DEF_IP_MULTICAST_LOOP IP_MULTICAST_LOOP # define BOOST_ASIO_OS_DEF_IP_ADD_MEMBERSHIP IP_ADD_MEMBERSHIP # define BOOST_ASIO_OS_DEF_IP_DROP_MEMBERSHIP IP_DROP_MEMBERSHIP # define BOOST_ASIO_OS_DEF_IP_TTL IP_TTL # define BOOST_ASIO_OS_DEF_IPV6_UNICAST_HOPS IPV6_UNICAST_HOPS # define BOOST_ASIO_OS_DEF_IPV6_MULTICAST_IF IPV6_MULTICAST_IF # define BOOST_ASIO_OS_DEF_IPV6_MULTICAST_HOPS IPV6_MULTICAST_HOPS # define BOOST_ASIO_OS_DEF_IPV6_MULTICAST_LOOP IPV6_MULTICAST_LOOP # define BOOST_ASIO_OS_DEF_IPV6_JOIN_GROUP IPV6_JOIN_GROUP # define BOOST_ASIO_OS_DEF_IPV6_LEAVE_GROUP IPV6_LEAVE_GROUP # define BOOST_ASIO_OS_DEF_AI_CANONNAME AI_CANONNAME # define BOOST_ASIO_OS_DEF_AI_PASSIVE AI_PASSIVE # define BOOST_ASIO_OS_DEF_AI_NUMERICHOST AI_NUMERICHOST # if defined(AI_NUMERICSERV) # define BOOST_ASIO_OS_DEF_AI_NUMERICSERV AI_NUMERICSERV # else # define BOOST_ASIO_OS_DEF_AI_NUMERICSERV 0 # endif // Note: QNX Neutrino 6.3 defines AI_V4MAPPED, AI_ALL and AI_ADDRCONFIG but // does not implement them. Therefore they are specifically excluded here. # if defined(AI_V4MAPPED) && !defined(__QNXNTO__) # define BOOST_ASIO_OS_DEF_AI_V4MAPPED AI_V4MAPPED # else # define BOOST_ASIO_OS_DEF_AI_V4MAPPED 0 # endif # if defined(AI_ALL) && !defined(__QNXNTO__) # define BOOST_ASIO_OS_DEF_AI_ALL AI_ALL # else # define BOOST_ASIO_OS_DEF_AI_ALL 0 # endif # if defined(AI_ADDRCONFIG) && !defined(__QNXNTO__) # define BOOST_ASIO_OS_DEF_AI_ADDRCONFIG AI_ADDRCONFIG # else # define BOOST_ASIO_OS_DEF_AI_ADDRCONFIG 0 # endif # if defined(IOV_MAX) const int max_iov_len = IOV_MAX; # else // POSIX platforms are not required to define IOV_MAX. const int max_iov_len = 16; # endif #endif const int custom_socket_option_level = 0xA5100000; const int enable_connection_aborted_option = 1; const int always_fail_option = 2; } // namespace detail } // namespace asio } // namespace boost #include <boost/asio/detail/pop_options.hpp> #endif // BOOST_ASIO_DETAIL_SOCKET_TYPES_HPP
Save
cmd:
run