MySQL 9.1.0
Source Code Documentation
net::impl::socket::SocketService Class Reference

#include <socket_service.h>

Inheritance diagram for net::impl::socket::SocketService:
[legend]

Public Member Functions

stdx::expected< native_handle_type, error_typesocket (int family, int sock_type, int protocol) const override
 
stdx::expected< std::pair< native_handle_type, native_handle_type >, error_typesocketpair (int family, int sock_type, int protocol) const override
 
stdx::expected< void, std::error_code > close (native_handle_type native_handle) const override
 
stdx::expected< void, error_typeioctl (native_handle_type native_handle, unsigned long cmd, void *data) const override
 
stdx::expected< bool, error_typenative_non_blocking (native_handle_type native_handle) const override
 
stdx::expected< void, error_typenative_non_blocking (native_handle_type native_handle, bool on) const override
 
stdx::expected< void, error_typelisten (native_handle_type native_handle, int backlog) const override
 
stdx::expected< void, error_typesetsockopt (native_handle_type native_handle, int level, int optname, const void *optval, socklen_t optlen) const override
 
stdx::expected< void, error_typegetsockopt (native_handle_type native_handle, int level, int optname, void *optval, socklen_t *optlen) const override
 
stdx::expected< size_t, error_typerecvmsg (native_handle_type native_handle, msghdr_base &msg, message_flags flags) const override
 
stdx::expected< size_t, error_typesendmsg (native_handle_type native_handle, msghdr_base &msg, message_flags flags) const override
 
stdx::expected< void, error_typebind (native_handle_type native_handle, const struct sockaddr *addr, size_t addr_len) const override
 
stdx::expected< void, error_typeconnect (native_handle_type native_handle, const struct sockaddr *addr, size_t addr_len) const override
 
stdx::expected< native_handle_type, error_typeaccept (native_handle_type native_handle, struct sockaddr *addr, socklen_t *addr_len) const override
 
stdx::expected< native_handle_type, error_typeaccept4 (native_handle_type native_handle, struct sockaddr *addr, socklen_t *addr_len, int flags=0) const override
 
stdx::expected< void, error_typegetsockname (native_handle_type native_handle, struct sockaddr *addr, size_t *addr_len) const override
 
stdx::expected< void, error_typegetpeername (native_handle_type native_handle, struct sockaddr *addr, size_t *addr_len) const override
 
stdx::expected< size_t, error_typesplice_to_pipe (native_handle_type fd_in, impl::file::file_handle_type fd_out, size_t len, int flags) const override
 
stdx::expected< size_t, error_typesplice_from_pipe (impl::file::file_handle_type fd_in, native_handle_type fd_out, size_t len, int flags) const override
 
stdx::expected< void, error_typewait (native_handle_type fd, wait_type wt) const override
 
stdx::expected< void, error_typeshutdown (native_handle_type fd, int how) const override
 
stdx::expected< std::unique_ptr< struct addrinfo, void(*)(struct addrinfo *)>, std::error_code > getaddrinfo (const char *node, const char *service, const addrinfo *hints) const override
 
- Public Member Functions inherited from net::impl::socket::SocketServiceBase
virtual ~SocketServiceBase ()=default
 

Member Function Documentation

◆ accept()

stdx::expected< native_handle_type, error_type > net::impl::socket::SocketService::accept ( native_handle_type  native_handle,
struct sockaddr addr,
socklen_t *  addr_len 
) const
inlineoverridevirtual

◆ accept4()

stdx::expected< native_handle_type, error_type > net::impl::socket::SocketService::accept4 ( native_handle_type  native_handle,
struct sockaddr addr,
socklen_t *  addr_len,
int  flags = 0 
) const
inlineoverridevirtual

◆ bind()

stdx::expected< void, error_type > net::impl::socket::SocketService::bind ( native_handle_type  native_handle,
const struct sockaddr addr,
size_t  addr_len 
) const
inlineoverridevirtual

◆ close()

stdx::expected< void, std::error_code > net::impl::socket::SocketService::close ( native_handle_type  native_handle) const
inlineoverridevirtual

◆ connect()

stdx::expected< void, error_type > net::impl::socket::SocketService::connect ( native_handle_type  native_handle,
const struct sockaddr addr,
size_t  addr_len 
) const
inlineoverridevirtual

◆ getaddrinfo()

stdx::expected< std::unique_ptr< struct addrinfo, void(*)(struct addrinfo *)>, std::error_code > net::impl::socket::SocketService::getaddrinfo ( const char *  node,
const char *  service,
const addrinfo *  hints 
) const
inlineoverridevirtual

◆ getpeername()

stdx::expected< void, error_type > net::impl::socket::SocketService::getpeername ( native_handle_type  native_handle,
struct sockaddr addr,
size_t *  addr_len 
) const
inlineoverridevirtual

◆ getsockname()

stdx::expected< void, error_type > net::impl::socket::SocketService::getsockname ( native_handle_type  native_handle,
struct sockaddr addr,
size_t *  addr_len 
) const
inlineoverridevirtual

◆ getsockopt()

stdx::expected< void, error_type > net::impl::socket::SocketService::getsockopt ( native_handle_type  native_handle,
int  level,
int  optname,
void *  optval,
socklen_t *  optlen 
) const
inlineoverridevirtual

◆ ioctl()

stdx::expected< void, error_type > net::impl::socket::SocketService::ioctl ( native_handle_type  native_handle,
unsigned long  cmd,
void *  data 
) const
inlineoverridevirtual

◆ listen()

stdx::expected< void, error_type > net::impl::socket::SocketService::listen ( native_handle_type  native_handle,
int  backlog 
) const
inlineoverridevirtual

◆ native_non_blocking() [1/2]

stdx::expected< bool, error_type > net::impl::socket::SocketService::native_non_blocking ( native_handle_type  native_handle) const
inlineoverridevirtual

◆ native_non_blocking() [2/2]

stdx::expected< void, error_type > net::impl::socket::SocketService::native_non_blocking ( native_handle_type  native_handle,
bool  on 
) const
inlineoverridevirtual

◆ recvmsg()

stdx::expected< size_t, error_type > net::impl::socket::SocketService::recvmsg ( native_handle_type  native_handle,
msghdr_base msg,
message_flags  flags 
) const
inlineoverridevirtual

◆ sendmsg()

stdx::expected< size_t, error_type > net::impl::socket::SocketService::sendmsg ( native_handle_type  native_handle,
msghdr_base msg,
message_flags  flags 
) const
inlineoverridevirtual

◆ setsockopt()

stdx::expected< void, error_type > net::impl::socket::SocketService::setsockopt ( native_handle_type  native_handle,
int  level,
int  optname,
const void *  optval,
socklen_t  optlen 
) const
inlineoverridevirtual

◆ shutdown()

stdx::expected< void, error_type > net::impl::socket::SocketService::shutdown ( native_handle_type  fd,
int  how 
) const
inlineoverridevirtual

◆ socket()

stdx::expected< native_handle_type, error_type > net::impl::socket::SocketService::socket ( int  family,
int  sock_type,
int  protocol 
) const
inlineoverridevirtual

◆ socketpair()

stdx::expected< std::pair< native_handle_type, native_handle_type >, error_type > net::impl::socket::SocketService::socketpair ( int  family,
int  sock_type,
int  protocol 
) const
inlineoverridevirtual

◆ splice_from_pipe()

stdx::expected< size_t, error_type > net::impl::socket::SocketService::splice_from_pipe ( impl::file::file_handle_type  fd_in,
native_handle_type  fd_out,
size_t  len,
int  flags 
) const
inlineoverridevirtual

◆ splice_to_pipe()

stdx::expected< size_t, error_type > net::impl::socket::SocketService::splice_to_pipe ( native_handle_type  fd_in,
impl::file::file_handle_type  fd_out,
size_t  len,
int  flags 
) const
inlineoverridevirtual

◆ wait()

stdx::expected< void, error_type > net::impl::socket::SocketService::wait ( native_handle_type  fd,
wait_type  wt 
) const
inlineoverridevirtual

The documentation for this class was generated from the following file: