MySQL 8.4.2
Source Code Documentation
net::impl::socket::SocketServiceBase Class Referenceabstract

#include <socket_service_base.h>

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

Public Member Functions

virtual ~SocketServiceBase ()=default
 
virtual stdx::expected< native_handle_type, error_typesocket (int family, int sock_type, int protocol) const =0
 
virtual stdx::expected< std::pair< native_handle_type, native_handle_type >, error_typesocketpair (int family, int sock_type, int protocol) const =0
 
virtual stdx::expected< void, error_typeclose (native_handle_type native_handle) const =0
 
virtual stdx::expected< void, error_typeioctl (native_handle_type native_handle, unsigned long cmd, void *data) const =0
 
virtual stdx::expected< bool, error_typenative_non_blocking (native_handle_type native_handle) const =0
 
virtual stdx::expected< void, error_typenative_non_blocking (native_handle_type native_handle, bool on) const =0
 
virtual stdx::expected< void, error_typelisten (native_handle_type native_handle, int backlog) const =0
 
virtual stdx::expected< void, error_typesetsockopt (native_handle_type native_handle, int level, int optname, const void *optval, socklen_t optlen) const =0
 
virtual stdx::expected< void, error_typegetsockopt (native_handle_type native_handle, int level, int optname, void *optval, socklen_t *optlen) const =0
 
virtual stdx::expected< size_t, error_typerecvmsg (native_handle_type native_handle, msghdr_base &msg, message_flags flags) const =0
 
virtual stdx::expected< size_t, error_typesendmsg (native_handle_type native_handle, msghdr_base &msg, message_flags flags) const =0
 
virtual stdx::expected< void, error_typebind (native_handle_type native_handle, const struct sockaddr *addr, size_t addr_len) const =0
 
virtual stdx::expected< void, error_typeconnect (native_handle_type native_handle, const struct sockaddr *addr, size_t addr_len) const =0
 
virtual stdx::expected< native_handle_type, error_typeaccept (native_handle_type native_handle, struct sockaddr *addr, socklen_t *addr_len) const =0
 
virtual stdx::expected< native_handle_type, error_typeaccept4 (native_handle_type native_handle, struct sockaddr *addr, socklen_t *addr_len, int flags=0) const =0
 
virtual stdx::expected< void, error_typegetsockname (native_handle_type native_handle, struct sockaddr *addr, size_t *addr_len) const =0
 
virtual stdx::expected< void, error_typegetpeername (native_handle_type native_handle, struct sockaddr *addr, size_t *addr_len) const =0
 
virtual 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 =0
 
virtual 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 =0
 
virtual stdx::expected< void, error_typewait (native_handle_type fd, wait_type wt) const =0
 
virtual stdx::expected< void, error_typeshutdown (native_handle_type fd, int how) const =0
 
virtual stdx::expected< std::unique_ptr< struct addrinfo, void(*)(struct addrinfo *)>, std::error_code > getaddrinfo (const char *node, const char *service, const addrinfo *hints) const =0
 

Constructor & Destructor Documentation

◆ ~SocketServiceBase()

virtual net::impl::socket::SocketServiceBase::~SocketServiceBase ( )
virtualdefault

Member Function Documentation

◆ accept()

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

◆ accept4()

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

◆ bind()

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

◆ close()

virtual stdx::expected< void, error_type > net::impl::socket::SocketServiceBase::close ( native_handle_type  native_handle) const
pure virtual

◆ connect()

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

◆ getaddrinfo()

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

◆ getpeername()

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

◆ getsockname()

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

◆ getsockopt()

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

◆ ioctl()

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

◆ listen()

virtual stdx::expected< void, error_type > net::impl::socket::SocketServiceBase::listen ( native_handle_type  native_handle,
int  backlog 
) const
pure virtual

◆ native_non_blocking() [1/2]

virtual stdx::expected< bool, error_type > net::impl::socket::SocketServiceBase::native_non_blocking ( native_handle_type  native_handle) const
pure virtual

◆ native_non_blocking() [2/2]

virtual stdx::expected< void, error_type > net::impl::socket::SocketServiceBase::native_non_blocking ( native_handle_type  native_handle,
bool  on 
) const
pure virtual

◆ recvmsg()

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

◆ sendmsg()

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

◆ setsockopt()

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

◆ shutdown()

virtual stdx::expected< void, error_type > net::impl::socket::SocketServiceBase::shutdown ( native_handle_type  fd,
int  how 
) const
pure virtual

◆ socket()

virtual stdx::expected< native_handle_type, error_type > net::impl::socket::SocketServiceBase::socket ( int  family,
int  sock_type,
int  protocol 
) const
pure virtual

◆ socketpair()

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

◆ splice_from_pipe()

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

◆ splice_to_pipe()

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

◆ wait()

virtual stdx::expected< void, error_type > net::impl::socket::SocketServiceBase::wait ( native_handle_type  fd,
wait_type  wt 
) const
pure virtual

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