Skip to main content
Pigweed's logo Pigweed
code_xml
  1. Home
  2. Reference
  3. C/C++
  4. pw::transport::Connector::ConnectFuture Class Reference
pw::transport::Connector::ConnectFuture Class Referencefinal

Overview

The future returned by Connect, resolving to a Socket handle on success.

Inheritance diagram for pw::transport::Connector::ConnectFuture:
pw::transport::internal::TransportFuture< ConnectFuture, Socket >

Friends

class internal::TransportFuture< ConnectFuture, Socket >
 
class ReliableConnector
 

Additional Inherited Members

- Public Types inherited from pw::transport::internal::TransportFuture< ConnectFuture, Socket >
using value_type = Result< Socket >
 
- Public Member Functions inherited from pw::transport::internal::TransportFuture< ConnectFuture, Socket >
 TransportFuture (const TransportFuture &)=delete
 
TransportFuture & operator= (const TransportFuture &)=delete
 
void Cancel ()
 Cancels the future.
 
bool is_pendable () const
 Returns true if the future can be pended.
 
bool is_complete () const
 Returns true if the future has completed.
 
async2::Poll< value_type > Pend (async2::Context &cx)
 Polls the future, returning the socket once the connection completes.
 
- Static Public Member Functions inherited from pw::transport::internal::TransportFuture< ConnectFuture, Socket >
static ConnectFuture Resolved (value_type &&result)
 Creates a future that is immediately resolved with result.
 
static ConnectFuture Resolved (const value_type &result)
 Creates a future that is immediately resolved with result.
 
- Protected Member Functions inherited from pw::transport::internal::TransportFuture< ConnectFuture, Socket >
 TransportFuture (TransportFuture &&) noexcept=default
 
 TransportFuture (async2::ValueFuture< Result< Socket > > &&future) noexcept
 
TransportFuture & operator= (TransportFuture &&) noexcept=default
 
async2::ValueFuture< Result< Socket > > && TakeFuture () &&noexcept
 

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