Try< Bytes > size(const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)
Definition: stat.hpp:100
virtual Kind kind() const
Definition: poll_socket.hpp:39
PollSocketImpl(int_fd s)
Definition: poll_socket.hpp:28
int_fd s
Definition: socket.hpp:229
Kind
Available kinds of implementations.
Definition: socket.hpp:64
Definition: address.hpp:277
virtual Future< std::shared_ptr< SocketImpl > > accept()
Returns an implementation corresponding to the next pending connection for the listening socket...
Try< Address > address() const
Returns the Address with the assigned ip and assigned port.
Implementation interface for a Socket.
Definition: socket.hpp:55
static Try< std::shared_ptr< SocketImpl > > create(int_fd s)
Definition: poll_socket.hpp:23
virtual Try< Nothing > listen(int backlog)
Result< Process > process(pid_t pid)
Definition: freebsd.hpp:30
virtual Future< size_t > send(const char *data, size_t size)
virtual Future< size_t > recv(char *data, size_t size)
int int_fd
Definition: int_fd.hpp:35
virtual Future< size_t > sendfile(int_fd fd, off_t offset, size_t size)
virtual Future< Nothing > connect(const Address &address)
virtual ~PollSocketImpl()
Definition: poll_socket.hpp:30
Definition: future.hpp:57