MySQL 9.1.0
Source Code Documentation
|
#include <algorithm>
#include <array>
#include <bitset>
#include <cinttypes>
#include <limits>
#include <system_error>
#include <fcntl.h>
#include <netinet/in.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <unistd.h>
#include "mysql/harness/net_ts/buffer.h"
#include "mysql/harness/net_ts/impl/file.h"
#include "mysql/harness/net_ts/impl/poll.h"
#include "mysql/harness/net_ts/impl/socket_constants.h"
#include "mysql/harness/net_ts/impl/socket_error.h"
#include "mysql/harness/stdx/expected.h"
#include "scope_guard.h"
Go to the source code of this file.
Namespaces | |
namespace | net |
namespace | net::impl |
namespace | net::impl::socket |
Functions | |
stdx::expected< native_handle_type, error_type > | net::impl::socket::socket (int family, int sock_type, int protocol) |
stdx::expected< void, std::error_code > | net::impl::socket::close (native_handle_type native_handle) |
stdx::expected< void, error_type > | net::impl::socket::ioctl (native_handle_type native_handle, unsigned long cmd, void *data) |
stdx::expected< bool, error_type > | net::impl::socket::native_non_blocking (native_handle_type native_handle) |
stdx::expected< void, error_type > | net::impl::socket::native_non_blocking (native_handle_type native_handle, bool on) |
stdx::expected< void, error_type > | net::impl::socket::listen (native_handle_type native_handle, int backlog) |
stdx::expected< void, error_type > | net::impl::socket::setsockopt (native_handle_type native_handle, int level, int optname, const void *optval, socklen_t optlen) |
stdx::expected< void, error_type > | net::impl::socket::getsockopt (native_handle_type native_handle, int level, int optname, void *optval, socklen_t *optlen) |
stdx::expected< size_t, error_type > | net::impl::socket::recv (native_handle_type native_handle, void *buf, size_t buf_len, message_flags flags) |
wrap recv() in a portable way. More... | |
stdx::expected< size_t, error_type > | net::impl::socket::read (native_handle_type native_handle, void *data, size_t data_len) |
stdx::expected< size_t, error_type > | net::impl::socket::recvmsg (native_handle_type native_handle, msghdr_base &msg, message_flags flags) |
stdx::expected< size_t, error_type > | net::impl::socket::send (native_handle_type native_handle, const void *buf, size_t buf_len, message_flags flags) |
wrap send() in a portable way. More... | |
stdx::expected< size_t, error_type > | net::impl::socket::write (native_handle_type native_handle, const void *data, size_t data_len) |
stdx::expected< size_t, error_type > | net::impl::socket::sendmsg (native_handle_type native_handle, msghdr_base &msg, message_flags flags) |
stdx::expected< void, error_type > | net::impl::socket::bind (native_handle_type native_handle, const struct sockaddr *addr, size_t addr_len) |
wrap bind() in a portable way. More... | |
stdx::expected< void, error_type > | net::impl::socket::connect (native_handle_type native_handle, const struct sockaddr *addr, size_t addr_len) |
wrap connect() in a portable way. More... | |
stdx::expected< native_handle_type, error_type > | net::impl::socket::accept (native_handle_type native_handle, struct sockaddr *addr, socklen_t *addr_len) |
wrap accept() in a portable way. More... | |
stdx::expected< native_handle_type, error_type > | net::impl::socket::accept4 (native_handle_type native_handle, struct sockaddr *addr, socklen_t *addr_len, int flags=0) |
stdx::expected< void, error_type > | net::impl::socket::getsockname (native_handle_type native_handle, struct sockaddr *addr, size_t *addr_len) |
stdx::expected< void, error_type > | net::impl::socket::getpeername (native_handle_type native_handle, struct sockaddr *addr, size_t *addr_len) |
stdx::expected< std::pair< native_handle_type, native_handle_type >, error_type > | net::impl::socket::socketpair (int family, int sock_type, int protocol) |
socketpair(). More... | |
stdx::expected< size_t, error_type > | net::impl::socket::splice_to_pipe (native_handle_type fd_in, impl::file::file_handle_type fd_out, size_t len, int flags) |
stdx::expected< size_t, error_type > | net::impl::socket::splice_from_pipe (impl::file::file_handle_type fd_in, native_handle_type fd_out, size_t len, int flags) |
stdx::expected< void, error_type > | net::impl::socket::wait (native_handle_type fd, wait_type wt) |
stdx::expected< void, error_type > | net::impl::socket::shutdown (native_handle_type fd, int how) |
stdx::expected< void, std::error_code > | net::impl::socket::init () |