High performance C++ framework for concurrent servers
Public Types | Public Member Functions | Protected Member Functions | List of all members
seastar::pollable_fd Class Reference

Public Types

using speculation = pollable_fd_state::speculation

Public Member Functions

 pollable_fd (file_desc fd, speculation speculate=speculation())
future< size_t > read_some (char *buffer, size_t size)
future< size_t > read_some (uint8_t *buffer, size_t size)
future< size_t > read_some (const std::vector< iovec > &iov)
future< temporary_buffer< char > > read_some (internal::buffer_allocator *ba)
future write_all (const char *buffer, size_t size)
future write_all (const uint8_t *buffer, size_t size)
future< size_t > write_some (net::packet &p)
future write_all (net::packet &p)
future readable ()
future writeable ()
future readable_or_writeable ()
void abort_reader ()
void abort_writer ()
future< std::tuple< pollable_fd, socket_address > > accept ()
future connect (socket_address &sa)
future< size_t > sendmsg (struct msghdr *msg)
future< size_t > recvmsg (struct msghdr *msg)
future< size_t > sendto (socket_address addr, const void *buf, size_t len)
file_descget_file_desc () const
void shutdown (int how)
void close ()
 operator bool () const noexcept

Protected Member Functions

int get_fd () const
void maybe_no_more_recv ()
void maybe_no_more_send ()

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