template<class... Args>
void connect(Args&&... args);
Effects: Calls rdbuf()->connect(forward<Args>(args)...). If that function returns a null pointer, calls setstate(failbit) (which may throw ios_base::failure).
void close();
Effects: Calls rdbuf()->close(). If that function returns a null pointer, calls setstate(failbit) (which may throw ios_base::failure).
basic_socket_streambuf<protocol_type, clock_type, wait_traits_type>* rdbuf() const;
Let SB be the type basic_socket_streambuf<protocol_type, clock_type, wait_traits_type>.
Returns: const_cast<SB*>(addressof(sb_)).
basic_socket<protocol_type>& socket();
Returns: rdbuf()->socket().
error_code error() const;
Returns: rdbuf()->error().
time_point expiry() const;
Returns: rdbuf()->expiry().
void expires_at(const time_point& t);
Effects: Equivalent to rdbuf()->expires_at(t).
void expires_after(const duration& d);
Effects: Equivalent to rdbuf()->expires_after(d).