13 #ifndef __PROCESS_POLL_SOCKET__ 14 #define __PROCESS_POLL_SOCKET__ 44 const openssl::TLSClientConfig& config)
override;
56 #endif // __PROCESS_POLL_SOCKET__
Future< std::shared_ptr< SocketImpl > > accept() override
Returns an implementation corresponding to the next pending connection for the listening socket...
Try< Bytes > size(const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)
Definition: stat.hpp:130
PollSocketImpl(int_fd s)
Definition: poll_socket.hpp:32
int_fd s
Definition: socket.hpp:246
Kind
Available kinds of implementations.
Definition: socket.hpp:67
Definition: address.hpp:324
Future< size_t > recv(char *data, size_t size) override
Try< Address > address() const
Returns the Address with the assigned ip and assigned port.
Future< size_t > send(const char *data, size_t size) override
Implementation interface for a Socket.
Definition: socket.hpp:58
static Try< std::shared_ptr< SocketImpl > > create(int_fd s)
Future< size_t > sendfile(int_fd fd, off_t offset, size_t size) override
Definition: poll_socket.hpp:27
Kind kind() const override
Definition: poll_socket.hpp:49
Try< Nothing > listen(int backlog) override
Definition: attributes.hpp:24
Definition: executor.hpp:48
Future< Nothing > connect(const Address &address) override
int int_fd
Definition: int_fd.hpp:35
~PollSocketImpl() override
Definition: poll_socket.hpp:34
Definition: future.hpp:58