|
stdx::expected< native_handle_type, error_type > | socket (int family, int sock_type, int protocol) |
|
stdx::expected< void, std::error_code > | close (native_handle_type native_handle) |
|
stdx::expected< void, error_type > | ioctl (native_handle_type native_handle, unsigned long cmd, void *data) |
|
stdx::expected< bool, error_type > | native_non_blocking (native_handle_type native_handle) |
|
stdx::expected< void, error_type > | native_non_blocking (native_handle_type native_handle, bool on) |
|
stdx::expected< void, error_type > | listen (native_handle_type native_handle, int backlog) |
|
stdx::expected< void, error_type > | setsockopt (native_handle_type native_handle, int level, int optname, const void *optval, socklen_t optlen) |
|
stdx::expected< void, error_type > | getsockopt (native_handle_type native_handle, int level, int optname, void *optval, socklen_t *optlen) |
|
stdx::expected< size_t, error_type > | 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 > | read (native_handle_type native_handle, void *data, size_t data_len) |
|
stdx::expected< size_t, error_type > | recvmsg (native_handle_type native_handle, msghdr_base &msg, message_flags flags) |
|
stdx::expected< size_t, error_type > | 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 > | write (native_handle_type native_handle, const void *data, size_t data_len) |
|
stdx::expected< size_t, error_type > | sendmsg (native_handle_type native_handle, msghdr_base &msg, message_flags flags) |
|
stdx::expected< void, error_type > | 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 > | 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 > | 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 > | accept4 (native_handle_type native_handle, struct sockaddr *addr, socklen_t *addr_len, int flags=0) |
|
stdx::expected< void, error_type > | getsockname (native_handle_type native_handle, struct sockaddr *addr, size_t *addr_len) |
|
stdx::expected< void, error_type > | 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 > | socketpair (int family, int sock_type, int protocol) |
| socketpair(). More...
|
|
stdx::expected< size_t, error_type > | 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 > | 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 > | wait (native_handle_type fd, wait_type wt) |
|
stdx::expected< void, error_type > | shutdown (native_handle_type fd, int how) |
|
stdx::expected< void, std::error_code > | init () |
|
int | last_error () |
| get last socket error. More...
|
|
std::error_code | make_error_code (int errcode) |
| make proper std::error_code for socket errno's More...
|
|
std::error_code | last_error_code () |
| get last std::error_code for socket-errors. More...
|
|