folly::DecoratedAsyncTransportWrapper::getPeerAddress

getPeerAddress overloads

Synopses

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

Get the address of the remote endpoint to which this transport is connected.

SocketAddress
getPeerAddress() const;
» more...

Get the address of the remote endpoint to which this transport is connected.

virtual
void
getPeerAddress(SocketAddress* address) const = 0;
» more...

Store the peer address of the wrapped transport.

virtual
void
getPeerAddress(folly::SocketAddress* address) const override;
» more...

Return Value

Return the remote endpoint's address

Parameters

NameDescription
addressThe remote endpoint's address will be stored in the specified SocketAddress.