getUnderlyingTransport overloads

Synopses

Declared in <folly/io/async/AsyncTransport.h>

In many cases when we need to set socket properties or otherwise access the underlying transport from a wrapped transport. This method allows access to the derived classes of the underlying transport.

template<class T>
T const*
getUnderlyingTransport() const;

Access the underlying transport of type T, or nullptr if none matches.

template<class T>
T*
getUnderlyingTransport();

Return Value

  • The underlying transport of type T, or nullptr if none matches.

  • The underlying transport of type T, or nullptr.

Created with MrDocs